Last active
December 2, 2015 21:21
-
-
Save therealklanni/2eaffd4029bfaabf5559 to your computer and use it in GitHub Desktop.
This file contains 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(inner => n => n <= 1 ? n : n * inner(n - 1)) | |
console.log(Yfact) | |
// n => n <= 1 ? n : n * inner(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