On Monday, October 19, 2015 at 3:49:41 AM UTC-4, JvJ wrote:
>
> Merge isn't recursive on substructures.
Of course, there's (fn foo [m1 m2] (if (and (map? m1) (map? m2))
(merge-with foo m1 m2) m2)) ...
--
You received this message because you are subscribed to the Google
Groups "Clojure" group
Merge isn't recursive on substructures.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscr
You can also take a look at patchin or differ (differ is my project) for
this usecase.
torsdag 15. oktober 2015 23.26.01 UTC+2 skrev JvJ følgende:
>
> I just discovered clojure.data/diff, and it's great. However, I'm not
> sure how to recombine the results to get back the original.
>
> For inst
On Thursday, October 15, 2015 at 5:26:01 PM UTC-4, JvJ wrote:
>
> I just discovered clojure.data/diff, and it's great. However, I'm not
> sure how to recombine the results to get back the original.
>
> For instance, if (diff a b) = c, then how can I combine b and c to get
> back to a?
>
>
Merge
I just discovered clojure.data/diff, and it's great. However, I'm not sure
how to recombine the results to get back the original.
For instance, if (diff a b) = c, then how can I combine b and c to get back
to a?
--
You received this message because you are subscribed to the Google
Groups "Clo