kotlin.collections.foldTo
foldTo
inline fun <T, K, R, M : MutableMap<in K, R>> Grouping<T, K>.foldTo( destination: M, initialValueSelector: (key: K, element: T) -> R, operation: (key: K, accumulator: R, element: T) -> R ): M
Platform and version requirements: Kotlin 1.1
Groups elements from the Grouping source by key and applies 登录查看完整内容