W3cubDocs

/Kotlin

toMutableMap

Platform and version requirements: JVM (1.1), JS (1.1), Native (1.1)
fun <K, V> Map<out K, V>.toMutableMap(): MutableMap<K, V>

Returns a new mutable map containing all key-value pairs from the original map.

The returned map preserves the entry iteration order of the original map.

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