function | since v0.0-927 | clojure.core/merge | Edit |
(merge & maps)
Returns a map that consists of the rest of the maps conj
-ed onto the first.
If a key occurs in more than one map, the mapping from the rightmost map will "win".
Returns a map that consists of the rest of the maps conj-ed onto the first. If a key occurs in more than one map, the mapping from the latter (left-to-right) will be the mapping in the result.
(defn merge
[& maps]
(when (some identity maps)
(reduce #(conj (or %1 {}) %2) maps)))