about summary refs log tree commit diff stats
path: root/js
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2024-06-12 23:01:50 -0400
committerelioat <elioat@tilde.institute>2024-06-12 23:01:50 -0400
commit88a1ffea7da9af0e1a997103806c1314e8db21e6 (patch)
treeab8949d47df8808afc1d5b29c0f8fe9e694336ae /js
parent726cf0f11e532244045801fadaa990eae60aaf27 (diff)
downloadtour-88a1ffea7da9af0e1a997103806c1314e8db21e6.tar.gz
*
Diffstat (limited to 'js')
-rw-r--r--js/life.combinators.js4
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
+}());