minus method

  1. @useResult
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

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