Documentation / dataflow / com.femastudios.dataflow.extensions / aggregate
Go to reference

aggregate

fun <T, K, R> Field<Grouping<T, K>>.aggregate(operation: (key: K, accumulator: R?, element: T, first: Boolean) -> R): Field<Map<K, R>>

Same as aggregate, but accepts Field and returns a new Field.

Calling this function is equivalent to use transform and calling aggregate in the transformation function.

This is simply a convenience function.

See Also

kotlin.collections.aggregate