Last active
August 29, 2015 14:19
-
-
Save bgmarx/e7ad1194e23aa56b7ab1 to your computer and use it in GitHub Desktop.
fib stabby lambda
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
f = -> (x) { x < 2 ? x : f[x-1] + f[x-2] } | |
# puts f[5] => 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment