effect-io-ai

Package: effect
Module: Stream

Stream.mapConcatChunkEffect

Effectfully maps each element to a chunk, and flattens the chunks into the output of this stream.

Signature

declare const mapConcatChunkEffect: { <A, A2, E2, R2>(f: (a: A) => Effect.Effect<Chunk.Chunk<A2>, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A2, E2 | E, R2 | R>; <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, f: (a: A) => Effect.Effect<Chunk.Chunk<A2>, E2, R2>): Stream<A2, E | E2, R | R2>; }

Source

Since v2.0.0