Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active May 27, 2017 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/a39151bdca46ff5f1efeb42c5a8391c0 to your computer and use it in GitHub Desktop.
Save deque-blog/a39151bdca46ff5f1efeb42c5a8391c0 to your computer and use it in GitHub Desktop.
(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