Let's say I have this map
old = %{stuff: %{old: 123}}
How do I update the key stuff:
?
I have this other map:
new = %{stuff: %{new: 321}}
With Map.put it will override stuff key and I also tried Map.merge but it doesnt merge, it overrides the key with the second map
iex(22)> Map.merge(test, new)
%{stuff: %{new: 321}}
I would like to have something like:
%{stuff: %{old: 123, new: 321}}