W3cubDocs

/Kotlin

minusAssign

Platform and version requirements: JVM (1.1), JS (1.1), Native (1.1)
operator fun <K, V> MutableMap<K, V>.minusAssign(key: K)

Removes the entry with the given key from this mutable map.

Platform and version requirements: JVM (1.1), JS (1.1), Native (1.1)
operator fun <K, V> MutableMap<K, V>.minusAssign(
    keys: Iterable<K>)

Removes all entries the keys of which are contained in the given keys collection from this mutable map.

Platform and version requirements: JVM (1.1), JS (1.1), Native (1.1)
operator fun <K, V> MutableMap<K, V>.minusAssign(
    keys: Array<out K>)

Removes all entries the keys of which are contained in the given keys array from this mutable map.

Platform and version requirements: JVM (1.1), JS (1.1), Native (1.1)
operator fun <K, V> MutableMap<K, V>.minusAssign(
    keys: Sequence<K>)

Removes all entries from the keys of which are contained in the given keys sequence from this mutable map.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
operator fun <T> MutableCollection<in T>.minusAssign(
    element: T)

Removes a single instance of the specified element from this mutable collection.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
operator fun <T> MutableCollection<in T>.minusAssign(
    elements: Iterable<T>)

Removes all elements contained in the given elements collection from this mutable collection.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
operator fun <T> MutableCollection<in T>.minusAssign(
    elements: Array<T>)

Removes all elements contained in the given elements array from this mutable collection.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
operator fun <T> MutableCollection<in T>.minusAssign(
    elements: Sequence<T>)

Removes all elements contained in the given elements sequence from this mutable collection.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/minus-assign.html