addEntry method

ImmortalMap<K, V> addEntry(
  1. MapEntry<K, V> entry
)

Returns a copy of this map where the key/value pair entry is added.

If the key of entry is already present in the copy, the corresponding value is overwritten.

Implementation

ImmortalMap<K, V> addEntry(MapEntry<K, V> entry) => addEntries([entry]);