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–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/to-mutable-map.html