kotlin.collections.aggregateTo

aggregateTo

inline fun <T, K, R, M : MutableMap<in K, R>> Grouping<T, K>.aggregateTo(
    destination: M, 
    operation: (key: K, accumulator: R?, element: T, first: Boolean) -> R
): M

Platform and version requirements: Kotlin 1.1

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