Last active
December 2, 2015 21:22
-
-
Save therealklanni/85a7a93342bcb0c572b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Yfact = Y(g => n => n <= 1 ? n : n * g(n - 1)) | |
// expanded as | |
const Yfact = Y(g => { | |
return n => { | |
return n <= 1 ? n : n * g(n - 1) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Refer to The Mysterious Y-combinator