Skip to content

Instantly share code, notes, and snippets.

@acthp
Last active August 29, 2015 14:09
Show Gist options
  • Save acthp/ffd7d50bab44f8f9fc0a to your computer and use it in GitHub Desktop.
Save acthp/ffd7d50bab44f8f9fc0a to your computer and use it in GitHub Desktop.
clojure fizzbizz
(defn fizzbizz [x]
(reduce (fn [a [s d]] (get [s] (mod x d) a))
x
[["bizz" 5]["fizz" 3]["fizzbizz" 15]]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment