How to add (math) two maps?

For each key in map1, you update the same key in map2 with the sum of the floats.

Map 2 here, ends up with the sum.

You might want to put it in a third map.

But this will miss out keys from map2, if they are not in map1.

2 Likes