Skip to content
Buy me a coffee

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.

  • Integrator<A, T, R>

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.

A

T

Downstream<R>

boolean

readonly optional greedy?: boolean

Defined in: src/stream/Gatherer.ts:23

true for an integrator made by Integrator.ofGreedy: it never stops the upstream by itself.

IntegratorType.greedy