zipmap

functionsince v0.0-927 clojure.core/zipmapEdit
(zipmap keys vals)

Details:

Returns a map with keys mapped to corresponding vals.

user=> (zipmap [:a :b :c :d] [1 2 3 4])
{:a 1, :b 2, :c 3, :d 4}

See Also:


Source docstring:
Returns a map with the keys mapped to the corresponding vals.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn zipmap
  [keys vals]
    (loop [map (transient {})
           ks (seq keys)
           vs (seq vals)]
      (if (and ks vs)
        (recur (assoc! map (first ks) (first vs))
               (next ks)
               (next vs))
        (persistent! map))))