import { concreteStream, StreamInternal } from "@effect/core/stream/Stream/operations/_internal/StreamInternal" /** * Transforms the chunks emitted by this stream. * * @tsplus static effect/core/stream/Stream.Aspects mapChunks * @tsplus pipeable effect/core/stream/Stream mapChunks */ export function mapChunks( f: (chunk: Chunk) => Chunk ) { return (self: Stream): Stream => { concreteStream(self) return new StreamInternal(self.channel.mapOut(f)) } }