Last active
April 30, 2017 14:01
-
-
Save deque-blog/dfbaf318524e6ece957fdd354436db65 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 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