putAll

Common
JVM
JS
Native
1.0
fun <K, V> MutableMap<in K, in V>.putAll(
    pairs: Array<out Pair<K, V>>)

(source)

Puts all the given pairs into this MutableMap with the first component in the pair being the key and the second the value.

Common
JVM
JS
Native
1.0
fun <K, V> MutableMap<in K, in V>.putAll(
    pairs: Iterable<Pair<K, V>>)

(source)

Puts all the elements of the given collection into this MutableMap with the first component in the pair being the key and the second the value.

Common
JVM
JS
Native
1.0
fun <K, V> MutableMap<in K, in V>.putAll(
    pairs: Sequence<Pair<K, V>>)

(source)

Puts all the elements of the given sequence into this MutableMap with the first component in the pair being the key and the second the value.