Skip to content

Instantly share code, notes, and snippets.

@alandipert
Last active November 26, 2020 20:57
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 alandipert/fb7ce01cc109e9c2ed06b3a87573ccf4 to your computer and use it in GitHub Desktop.
Save alandipert/fb7ce01cc109e9c2ed06b3a87573ccf4 to your computer and use it in GitHub Desktop.
(defn fizzbuzz [n]
(let [fb (str ({0 "fizz"} (mod n 3))
({0 "buzz"} (mod n 5)))]
({"" (str n)} fb fb)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment