Advertisement
Guest User

fizz-buzz-without-conditions-v2

a guest
Jun 25th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defn fizzbuzz [fb-count]
  2.   (print
  3.     (clojure.string/join
  4.       (take fb-count
  5.         (map #(str %1 %2 %3)
  6.           (cycle ["" "" "fizz"])
  7.           (cycle ["" "" "" "" "buzz"])
  8.           (cycle ["\n"]))))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement