News for hackers. Stuff that matters.
Re:Toolz: A functional standard library for Python by mrocklin on Tuesday May 12, 2015 @03:05PM (#9534091)
You can manage this by composing merge and merge_with

In [1]: data = [{'a': {'b': 1}}, {'a': {'c': 2}}]

In [2]: from toolz import merge, merge_with

In [3]: merge_with(merge, data) Out[3]: {'a': {'b': 1, 'c': 2}}

You'd have to be a bit clever to go fully recursive

There are no comments on this comment yet.