import { concreteStream, StreamInternal } from "@effect/core/stream/Stream/operations/_internal/StreamInternal" /** * Transforms the elements of this stream using the supplied function. * * @tsplus static effect/core/stream/Stream.Aspects map * @tsplus pipeable effect/core/stream/Stream map */ export function map(f: (a: A) => B) { return (self: Stream): Stream => { concreteStream(self) return new StreamInternal(self.channel.mapOut((chunk) => chunk.map(f))) } }