Stream.scan<U>(fn: (acc: U,value: T,) => Promisable<U>,initialValue: U,): Stream<U, E>
Like fold but emits the running accumulator after each successful value,
allowing downstream operations to react to intermediate states.
Stream.scan<U>(fn: (acc: U,value: T,) => Promisable<U>,initialValue: U,): Stream<U, E>
Like fold but emits the running accumulator after each successful value,
allowing downstream operations to react to intermediate states.
import { type Stream } from ".";