Skip to content

Instantly share code, notes, and snippets.

@mediocregopher
Forked from MichaelDrogalis/gist:4684403
Last active December 25, 2015 14:49
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 mediocregopher/6993492 to your computer and use it in GitHub Desktop.
Save mediocregopher/6993492 to your computer and use it in GitHub Desktop.
user> (def fiz (cycle [nil nil "Fiz"]))
#'user/fiz
user> (def buzz (cycle [nil nil nil nil "Buzz"]))
#'user/buzz
user> (take 15 (map (partial apply str) (map list fiz buzz)))
("" "" "Fiz" "" "Buzz" "Fiz" "" "" "Fiz" "Buzz" "" "Fiz" "" "" "FizBuzz")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment