Skip to content

Instantly share code, notes, and snippets.

@pbalduino
Created April 18, 2013 00:58
Show Gist options
  • Save pbalduino/5409027 to your computer and use it in GitHub Desktop.
Save pbalduino/5409027 to your computer and use it in GitHub Desktop.
(use '[clojure.core.match :only (match)])
(doseq [n (range 1 101)]
(println
(match [(mod n 3) (mod n 5)]
[0 0] "FizzBuzz"
[0 _] "Fizz"
[_ 0] "Buzz"
:else n)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment