3 ms·
I really like this fizz-buzz implementation in clojure. (map #(or (not-empty %1) %2) (map str (cycle (conj (repeat 2 nil) "fizz"))
by j-pb 11y ago
I really like this fizz-buzz implementation in clojure.
(map #(or (not-empty %1) %2)
(map str
(cycle (conj (repeat 2 nil) "fizz"))
(cycle (conj (repeat 4 nil) "buzz")))
(range))