minus method Null safety

KtMap<K, V> minus(
  1. K key
)

Returns a map containing all entries of the original map except the entry with the given key.

The returned map preserves the entry iteration order of the original map.

Implementation

KtMap<K, V> minus(K key) => toMutableMap()..remove(key);