addPair method
Returns a copy of this map where the elements of pair
are added as a new
map entry.
The first element will be used as key and the second one as value. If the key is already present in the copy, the corresponding value is overwritten.
Implementation
ImmortalMap<K, V> addPair(Tuple2<K, V> pair) =>
addEntry(MapEntry(pair.item1, pair.item2));