Skip to content

Instantly share code, notes, and snippets.

@deque-blog

deque-blog/fibo-recur.clj

Last active May 27, 2017
Embed
What would you like to do?
(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