effect-io-ai

Package: effect
Module: Stream

Stream.unfoldChunkEffect

Creates a stream by effectfully peeling off the “layers” of a value of type S.

Signature

declare const unfoldChunkEffect: <S, A, E, R>(s: S, f: (s: S) => Effect.Effect<Option.Option<readonly [Chunk.Chunk<A>, S]>, E, R>) => Stream<A, E, R>

Source

Since v2.0.0