Last active
December 2, 2015 21:22
-
-
Save therealklanni/5761bfd155353cfe17fb 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 fact = n => n <= 1 ? n : n * fact(n - 1) | |
// expanded as | |
const fact = n => { | |
return n <= 1 ? n : n * fact(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