Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / kotlin.collections.Grouping
Go to reference

Extensions for kotlin.collections.Grouping

fold

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

fun <T, K, R> Grouping<T, K>.fold(initialValue: Attribute<R>, operation: (accumulator: R, element: T) -> R): Attribute<Map<K, R>>

keyOf

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

fun <T, K> Grouping<in T, K>.keyOf(element: Attribute<T>): Attribute<K>