-
-
Save dionyziz/2247935 to your computer and use it in GitHub Desktop.
Coffee nth Fibonacci
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, y, i ) -> if i then f( y, x + y, i - 1 ) else y )( 1, 1, 1475 ) |
No, Javascript's integers are limited. But, really, this isn't a coffeescript limitation per se; I think the language is nice overall :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
does it work for 1475 without going to "infinity" ?
Edit & PS:
coffee must replace all js :D