← Docs
kotlin-stdlib / kotlin.collections / toMutableMap

toMutableMap

Common
JVM
JS
Native
1.1
fun < K , V > Map < out K , V > . toMutableMap ( ) : MutableMap < K , V >
(source)

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.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .