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>
Constructs a new Collector from its components
fun <Value, Result> of(supply: suspend () -> Result, accumulate: suspend (current: Result, value: Value) -> Unit, characteristics: Set<Characteristics> = setOf()): Collector<Value, Result>
Constructs a new Collector from its components, where the accumulated value is directly its result