Created
April 6, 2015 20:02
-
-
Save wtfcarlos/e789952701a899421a3a 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
(fn [d ks] (loop [result {}, remaining ks, default d] | |
(if (not (empty? remaining)) | |
(recur (conj result {(first remaining) default}) | |
(rest remaining) | |
d) | |
result))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment