Skip to content

Instantly share code, notes, and snippets.

@daveyarwood
Created June 14, 2014 20:01
Show Gist options
  • 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