addEntry method

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

Returns a new map containing the current map plus the given key:value. (if necessary, the given entry will override the current one).

Implementation

IMap<K, V> addEntry(MapEntry<K, V> entry) => add(entry.key, entry.value);