kotlin.collections.reduce

reduce

inline fun <S, T : S, K> Grouping<T, K>.reduce(
    operation: (key: K, accumulator: S, element: T) -> S
): Map<K, S>

Platform and version requirements: Kotlin 1.1

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