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 mapc
which is a merge ofb
intoa
. Values fromb
will replace identically keyed non-map values froma
in thec
map.