Created
August 30, 2011 13:30
-
-
Save prajwalit/1180875 to your computer and use it in GitHub Desktop.
zipmap implementation.
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 vecs->map [coll1 coll2] | |
(apply hash-map (mapcat vector coll1 coll2))) | |
(vecs->map [1 2 3] [\a \b \c]) | |
;; => {"1" \a, "2" \b, "3" \c} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment