diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-02-11 16:38:36 -0700 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-02-11 16:38:36 -0700 |
commit | 9db4283a20d4ea751d21a8f04a49d3d95d527ac5 (patch) | |
tree | 5e44a85395953c621dc1043cfa56d84044022c26 /src/scenes/pure_functions.tsx | |
parent | 609338de80de82143f07107e3dfbb5f55f22e6e7 (diff) | |
download | compiling-the-lambda-calculus-9db4283a20d4ea751d21a8f04a49d3d95d527ac5.tar.gz compiling-the-lambda-calculus-9db4283a20d4ea751d21a8f04a49d3d95d527ac5.zip |
updates
Diffstat (limited to 'src/scenes/pure_functions.tsx')
-rw-r--r-- | src/scenes/pure_functions.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/scenes/pure_functions.tsx b/src/scenes/pure_functions.tsx index af1cc4f..6025926 100644 --- a/src/scenes/pure_functions.tsx +++ b/src/scenes/pure_functions.tsx @@ -26,8 +26,9 @@ const impureFib = (n: number) => { impureFib;`; const impureFactFunction = `const impureFact = (n: number): number => { while (cache.length <= n) - cache.push(cache.length * - cache[cache.length - 1]); + cache.push( + cache.length * cache[cache.length - 1] + ); return cache[n]; }; impureFact;`; |