Last active
February 29, 2016 16:11
-
-
Save paultag/74e85a8edd581bae7e8b to your computer and use it in GitHub Desktop.
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
(defn i [x] x) | |
(defn f [x] 'fizz) | |
(defn b [x] 'buzz) | |
(defn fb [x] (+ (f x) (b x))) | |
(defn apply/tuple [(, a func)] (func a)) | |
(defn enumerate/cycle [iter] (enumerate (cycle iter) :start 1)) | |
(print (list (take 150 (map apply/tuple (enumerate/cycle [i i f i b f i i f b i f i i fb]))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment