Add deep-merge and deep-merge-with

Description

When dealing with nested map structures, one often wants to merge two maps recursively.

The deep-merge-with function was originally written by Chris Houser for clojure.contrib.map-utils but was not maintained after clojure-contrib was split into separate modules.

deep-merge and deep-merge-with are widely copied, usually with the same implementation, in utility libraries. For example:

Environment

None

Activity

Show:
Rich Hickey
July 18, 2014, 5:42 PM

Vague semantics and docs strings

Declined

Assignee

Unassigned

Reporter

Stuart Sierra

Approval

Triaged

Patch

Code and Test

Priority

Minor