of

fun <InternalAccumulator, Value, Result> of(supply: suspend () -> InternalAccumulator, accumulate: suspend (current: InternalAccumulator, value: Value) -> Unit, finish: suspend (current: InternalAccumulator) -> Result, characteristics: Set<Characteristics> = setOf()): Collector<Value, Result>(source)

Constructs a new Collector from its components