ReduceGroupBuilder

class ReduceGroupBuilder<T : Any, R : Any>(inputType: KType, scope: CoroutineScope, actionMeta: Meta)

Functions

byValue
Link copied to clipboard
common
fun byValue(tag: String, defaultTag: String = "@default", action: JoinGroup<T, R>.() -> Unit)

introduce grouping by meta value

group
Link copied to clipboard
common
fun group(groupName: String, filter: suspend (Name, Data<T>) -> Boolean, action: JoinGroup<T, R>.() -> Unit)
result
Link copied to clipboard
common
fun result(resultName: String, f: suspend ActionEnv.(Map<Name, T>) -> R)

Apply transformation to the whole node

Properties

actionMeta
Link copied to clipboard
common
val actionMeta: Meta