Last active
May 27, 2017 14:09
-
-
Save deque-blog/a39151bdca46ff5f1efeb42c5a8391c0 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
(defn fibo-recur | |
[^long n] | |
(loop [curr 0N | |
next 1N | |
n n] | |
(if-not (zero? n) | |
(recur next (+ curr next) (dec n)) | |
curr))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment