Created
August 12, 2012 18:57
-
-
Save krisajenkins/3333741 to your computer and use it in GitHub Desktop.
Fizzbuzz in clojure.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(clojure.pprint/pprint | |
(map vector | |
(range 25) | |
(cycle [:fizz :_ :_]) | |
(cycle [:buzz :_ :_ :_ :_]))) | |
; Credit to http://clojure-and-me.blogspot.co.uk/2012/08/functional-fizzbuzz.html, code rewritten a little by me. |
Author
krisajenkins
commented
Aug 12, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment