W3cubDocs

/Kotlin

toMutableMap

fun <K, V> Map<out K, V>.toMutableMap(): MutableMap<K, V>

Platform and version requirements: Kotlin 1.1

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–2018 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