Map.merge/2
defmodule Map do
def merge(map1, map2)
end
Merges two maps into one.
All keys in map2
will be added to map1
, overriding any existing one (i.e., the keys in map2
“have precedence” over the ones in map1
).
defmodule Map do
def merge(map1, map2)
end
Merges two maps into one.
All keys in map2
will be added to map1
, overriding any existing one (i.e., the keys in map2
“have precedence” over the ones in map1
).