// ets_tracing: off import * as CK from "../../../../Collections/Immutable/Chunk/index.js" import type * as C from "../core.js" import * as MapChunks from "./mapChunks.js" /** * Maps each element to a chunk, and flattens the chunks into the output of * this stream. */ export function mapConcatChunk_( self: C.Stream, f: (a: A) => CK.Chunk ): C.Stream { return MapChunks.mapChunks_(self, CK.chain(f)) } /** * Maps each element to a chunk, and flattens the chunks into the output of * this stream. * * @ets_data_first mapConcatChunk_ */ export function mapConcatChunk(f: (a: A) => CK.Chunk) { return (self: C.Stream) => mapConcatChunk_(self, f) }