Clojure

Add deep-merge and deep-merge-with

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Declined
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code and Test
  • Approval:
    Triaged

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:

Activity

Hide
Rich Hickey added a comment -

Vague semantics and docs strings

Show
Rich Hickey added a comment - Vague semantics and docs strings

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: