associateWithTo

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

将每个元素与其对应的值关联起来,并将结果添加到目标可变映射中。

参考 kotlin.collections.associateWithTo

Return

目标可变映射

Parameters

V

值的类型

M

目标可变映射的类型

destination

目标可变映射

valueSelector

用于选择值的函数