Created
May 19, 2013 00:21
-
-
Save fgaray/5606199 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 fizzbuzz | |
[] | |
(letfn [(fizzbuzz' | |
[n] | |
(cond | |
(= (mod n 15) 0) "FizzBuzz" | |
(= (mod n 3) 0) "Fizz" | |
(= (mod n 5) 0) "Buzz" | |
:else n))] | |
(map fizzbuzz' (range 1 100)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment