// ets_tracing: off import type * as CK from "../../../../Collections/Immutable/Chunk/index.js" import * as CH from "../../Channel/index.js" import * as C from "../core.js" /** * Transforms the chunks emitted by this stream. */ export function mapChunks_( self: C.Stream, f: (chunk: CK.Chunk) => CK.Chunk ): C.Stream { return new C.Stream(CH.mapOut_(self.channel, f)) } /** * Transforms the chunks emitted by this stream. * * @ets_data_first mapChunks_ */ export function mapChunks(f: (chunk: CK.Chunk) => CK.Chunk) { return (self: C.Stream) => mapChunks_(self, f) }