effect-io-ai

Package: effect
Module: Iterable

Iterable.scan

Reduce an Iterable from the left, keeping all intermediate results instead of only the final result.

Signature

declare const scan: { <B, A>(b: B, f: (b: B, a: A) => B): (self: Iterable<A>) => Iterable<B>; <A, B>(self: Iterable<A>, b: B, f: (b: B, a: A) => B): Iterable<B>; }

Source

Since v2.0.0