Thanks a lot for all the help. Map.merge/2 is indeed a very simple and good solution to this specific problem.
I have thought about making a struct for it, but since the keys need to be dynamic (last 12 months), it wouldn’t work.
Thanks a lot for all the help. Map.merge/2 is indeed a very simple and good solution to this specific problem.
I have thought about making a struct for it, but since the keys need to be dynamic (last 12 months), it wouldn’t work.