deep-diff2 icon indicating copy to clipboard operation
deep-diff2 copied to clipboard

Minimize removes all newly added/removed collection items under newly added/removed map keys

Open kajism opened this issue 9 months ago • 3 comments

(ddiff/diff {:a 1} {:a 1 :items [{:x 3}]})
=> {#lambdaisland.deep_diff2.diff_impl.Insertion{:+ :items} [{:x 3}], :a 1}

(->> (ddiff/diff {:a 1} {:a 1 :items [{:x 3}]})
       (ddiff/minimize))
=> {#lambdaisland.deep_diff2.diff_impl.Insertion{:+ :items} []}


So all such big differences are hidden.

kajism avatar Apr 07 '25 11:04 kajism