aggregate

abstract fun aggregate(declaredName: String, aggregator: KFunction<*>, block: T.() -> Unit = {})(source)

Declares multiple options aggregated in a single parameter.

The aggregator will receive all the options in the declared order and produce a single output.

Parameters

declaredName

Name of the declared parameter which receives the value of the combined options

aggregator

The function taking all the options and merging them in a single output

See also

@Aggregate