← Docs
kotlin-stdlib / kotlin.collections / mapValuesTo

mapValuesTo

Common
JVM
JS
Native
1.0
inline fun < K , V , R , M : MutableMap < in K , in R > > Map < out K , V > . mapValuesTo (
destination : M ,
transform : ( Entry < K , V > ) -> R
) : M

(source)

Populates the given destination map with entries having the keys of this map and the values obtained by applying the transform function to each entry in this 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 .