Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/main/cljs/cljs/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -9292,9 +9292,11 @@ reduces them without incurring seq initialization"
"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."
[& maps]
(when (some identity maps)
(reduce #(conj (or %1 {}) %2) maps)))
([] nil)
([x] x)
([x y] (if (and x y) (into x y) (or x y)))
([x y & maps]
(reduce merge (merge x y) maps)))

(defn merge-with
"Returns a map that consists of the rest of the maps conj-ed onto
Expand Down
Loading