I have two node object, like this:
school:
grade:
class:
name: bob
school:
grade:
class:
age: 18
I want to merge it, the result like this:
school:
grade:
class:
name: bob
age: 18
How to merge it? when the node size and depth do not kown.
Here is my attempt:
For non-scalar keys I have opted to ignore node equivalence. Please note that this version does not modify
a. It returns a new mapcwhich is a merge ofbintoa. Values frombwill replace identically keyed non-map values fromain thecmap.