// ets_tracing: off import * as CK from "../../../../Collections/Immutable/Chunk/index.js" import * as CH from "../../Channel/index.js" import * as C from "../core.js" /** * Transforms the elements of this stream using the supplied function. */ export function map_( self: C.Stream, f: (o: O) => O1 ): C.Stream { return new C.Stream(CH.mapOut_(self.channel, (o) => CK.map_(o, f))) } /** * Transforms the elements of this stream using the supplied function. * * @ets_data_first map_ */ export function map( f: (o: O) => O1 ): (self: C.Stream) => C.Stream { return (self) => map_(self, f) }