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

aggregate

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

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

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