Skip to content

Instantly share code, notes, and snippets.

@Getaji
Created May 9, 2014 15:49
Show Gist options
  • Save Getaji/fd29503d67d79618a7b4 to your computer and use it in GitHub Desktop.
Save Getaji/fd29503d67d79618a7b4 to your computer and use it in GitHub Desktop.
(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