Skip to content

Instantly share code, notes, and snippets.

@daveyarwood
Created June 14, 2014 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daveyarwood/e9b9b758d8f00d35b180 to your computer and use it in GitHub Desktop.
Save daveyarwood/e9b9b758d8f00d35b180 to your computer and use it in GitHub Desktop.
(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