Created
May 9, 2014 15:49
-
-
Save Getaji/fd29503d67d79618a7b4 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 [x] | |
(cond | |
(= (rem x 15) 0) "FizzBuzz" | |
(= (rem x 3) 0) "Fizz" | |
(= (rem x 5) 0) "Buzz" | |
:else (str x) | |
) | |
) | |
(doseq [p (map fizzbuzz (range 1 100))] (println p)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment