associateWithTo

abstract fun <V, M : MutableMapWrapper<in PT, in V>> associateWithTo(destination: M, valueSelector: (PT) -> V): M

将此数组的每个元素与其对应的值关联起来,并将结果添加到给定的 MutableMapWrapper 中.

参考 kotlin.collections.associateWithTo

Return

给定的 MutableMapWrapper

Parameters

destination

用于存储结果的 MutableMapWrapper

valueSelector

用于为每个元素选择值的函数