Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(defn counter
[n]
(println n)
(if (< 0 n)
(recur (- n 1))
"Done!"))
(counter 3)
3
2
1
0
=> "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment