Integrator
Defined in: src/stream/Gatherers.ts:19
A gatherer’s per-element step (state, element, downstream) => boolean: false stops the upstream. The
Integrator value holds Integrator.of and Integrator.ofGreedy.
Extends
Section titled “Extends”Integrator<A,T,R>
Type Parameters
Section titled “Type Parameters”A
T
R
Integrator(
state,element,downstream):boolean
Defined in: src/stream/Gatherers.ts:19
A gatherer’s per-element step (state, element, downstream) => boolean: false stops the upstream. The
Integrator value holds Integrator.of and Integrator.ofGreedy.
Parameters
Section titled “Parameters”A
element
Section titled “element”T
downstream
Section titled “downstream”Downstream<R>
Returns
Section titled “Returns”boolean
Properties
Section titled “Properties”greedy?
Section titled “greedy?”
readonlyoptionalgreedy?:boolean
Defined in: src/stream/Gatherer.ts:23
true for an integrator made by Integrator.ofGreedy: it never stops the upstream by itself.
Inherited from
Section titled “Inherited from”IntegratorType.greedy