W3cubDocs

/Kotlin

minusAssign

inline operator fun <T> MutableCollection<in T>.minusAssign(
    element: T)

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

inline operator fun <T> MutableCollection<in T>.minusAssign(
    elements: Iterable<T>)

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

inline operator fun <T> MutableCollection<in T>.minusAssign(
    elements: Array<T>)

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

inline operator fun <T> MutableCollection<in T>.minusAssign(
    elements: Sequence<T>)

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

inline operator fun <K, V> MutableMap<K, V>.minusAssign(
    key: K)

Platform and version requirements: Kotlin 1.1

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

inline operator fun <K, V> MutableMap<K, V>.minusAssign(
    keys: Iterable<K>)

Platform and version requirements: Kotlin 1.1

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

inline operator fun <K, V> MutableMap<K, V>.minusAssign(
    keys: Array<out K>)

Platform and version requirements: Kotlin 1.1

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

inline operator fun <K, V> MutableMap<K, V>.minusAssign(
    keys: Sequence<K>)

Platform and version requirements: Kotlin 1.1

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

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