diff options
author | elioat <elioat@tilde.institute> | 2024-06-12 23:01:50 -0400 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2024-06-12 23:01:50 -0400 |
commit | 88a1ffea7da9af0e1a997103806c1314e8db21e6 (patch) | |
tree | ab8949d47df8808afc1d5b29c0f8fe9e694336ae /js | |
parent | 726cf0f11e532244045801fadaa990eae60aaf27 (diff) | |
download | tour-88a1ffea7da9af0e1a997103806c1314e8db21e6.tar.gz |
*
Diffstat (limited to 'js')
-rw-r--r-- | js/life.combinators.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/life.combinators.js b/js/life.combinators.js index a7f9e7e..452c767 100644 --- a/js/life.combinators.js +++ b/js/life.combinators.js @@ -22,7 +22,7 @@ const A = f => x => f (x) const T = x => f => f (x) const W = f => x => f (x) (x) const C = f => y => x => f (x) (y) -const B = f => g => x => f (g (x)) // FIXME: getting an error that g isn't a function when used in a pipeline +const B = f => g => x => f (g (x)) // FIXME: but what happens when, say, g is a value like TRUE and not a function? const S = f => g => x => f (x) (g (x)) const S_ = f => g => x => f (g (x)) (x) const S2 = f => g => h => x => f (g (x)) (h (x)) @@ -122,4 +122,4 @@ const nextBoardState = B (A (B (A (K (A (I)))))) (A (B (A (K (A (I)))))) [false, true, false] ]; console.assert(JSON.stringify(nextBoardState(board)) === JSON.stringify(nextBoard), 'nextBoardState 1 failed'); -}()); \ No newline at end of file +}()); |