kotlin.collections.reduceTo

reduceTo

inline fun <S, T : S, K, M : MutableMap<in K, S>> Grouping<T, K>.reduceTo(
    destination: M, 
    operation: (key: K, accumulator: S, element: T) -> S
): M

Platform and version requirements: Kotlin 1.1

Groups elements from the Grouping source by key and applies the reducing 登录查看完整内容