fantasy-combinators
fantasy-combinators copied to clipboard
Common combinators.
In your test of the fix combinator, I think you don't actually test the combinator since f is redefined inside it's anonymous parent function. Maybe try replacing this: ```js const...
This makes it a lot easier to use the combinators with javascript. - Also fixed the tests to make sure we have semi-colons.
The currently published version of `fantasy-combinators` has a bug: ``` diff // S combinator function substitution(f) { return function(g) { return function(x) { - f(x)(g(x)); + return f(x)(g(x)); }; };...