Created
June 14, 2014 20:01
-
-
Save daveyarwood/e9b9b758d8f00d35b180 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 fizz-buzz [n] | |
(cond | |
(zero? (rem n 15)) "FizzBuzz" | |
(zero? (rem n 3)) "Fizz" | |
(zero? (rem n 5)) "Buzz" | |
:else n)) | |
(doseq [x (map fizz-buzz (range 1 101))] | |
(println x)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment