Kotlin HashMap minusAssign()
Syntax & Examples
Syntax of HashMap.minusAssign()
There are 4 variations for the syntax of HashMap.minusAssign() extension function. They are:
1.
operator fun <K, V> MutableMap<K, V>.minusAssign(key: K)
This extension function removes the entry with the given key from this mutable map.
2.
operator fun <K, V> MutableMap<K, V>.minusAssign( keys: Iterable<K>)
This extension function removes all entries the keys of which are contained in the given keys collection from this mutable map.
3.
operator fun <K, V> MutableMap<K, V>.minusAssign( keys: Array<out K>)
This extension function removes all entries the keys of which are contained in the given keys array from this mutable map.
4.
operator fun <K, V> MutableMap<K, V>.minusAssign( keys: Sequence<K>)
This extension function removes all entries from the keys of which are contained in the given keys sequence from this mutable map.