Created
October 27, 2014 05:14
-
-
Save renanreismartins/33a5f9b791481402e514 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 x [map key] | |
(conj map {key (count map)})) | |
(defn rec [f numbers acc] | |
(if (empty? numbers) | |
acc | |
(recur f (rest numbers) (f acc (first numbers))))) | |
(prn (rec x [:a :b :c] {} )) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment