diff options
Diffstat (limited to 'js/life.combinators.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 +}()); |