Created
December 3, 2014 19:08
-
-
Save qpfiffer/897847ad614175f47a72 to your computer and use it in GitHub Desktop.
Possible Fibonacci in Den.
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
fibonacci x | |
? >= n 1 | |
: + (fibonacci (- n 1)) (fibonacci (- n 2)) | |
: 1 | |
! fibonacci 10 # Returns 144 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment