W3cubDocs

/Kotlin

plusAssign

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
operator fun <K, V> MutableMap<in K, in V>.plusAssign(
    pair: Pair<K, V>)

Appends or replaces the given pair in this mutable map.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
operator fun <K, V> MutableMap<in K, in V>.plusAssign(
    pairs: Iterable<Pair<K, V>>)

Appends or replaces all pairs from the given collection of pairs in this mutable map.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
operator fun <K, V> MutableMap<in K, in V>.plusAssign(
    pairs: Array<out Pair<K, V>>)

Appends or replaces all pairs from the given array of pairs in this mutable map.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
operator fun <K, V> MutableMap<in K, in V>.plusAssign(
    pairs: Sequence<Pair<K, V>>)

Appends or replaces all pairs from the given sequence of pairs in this mutable map.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
operator fun <K, V> MutableMap<in K, in V>.plusAssign(
    map: Map<K, V>)

Appends or replaces all entries from the given map in this mutable map.

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

Adds the specified element to this mutable collection.

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

Adds all elements of the given elements collection to this mutable collection.

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

Adds all elements of the given elements array to this mutable collection.

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

Adds all elements of the given elements sequence to 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/plus-assign.html