Skip to content

Instantly share code, notes, and snippets.

@prajwalit
Created August 30, 2011 13:30
Show Gist options
  • Save prajwalit/1180875 to your computer and use it in GitHub Desktop.
Save prajwalit/1180875 to your computer and use it in GitHub Desktop.
zipmap implementation.
(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