// ets_tracing: off import * as CK from "../../../../Collections/Immutable/Chunk/index.js" import type * as C from "../core.js" import * as MapConcatChunk from "./mapConcatChunk.js" /** * Maps each element to an iterable, and flattens the iterables into the * output of this stream. */ export function mapConcat_( self: C.Stream, f: (a: A) => Iterable ): C.Stream { return MapConcatChunk.mapConcatChunk_(self, (a) => CK.from(f(a))) } /** * Maps each element to an iterable, and flattens the iterables into the * output of this stream. * * @ets_data_first mapConcat_ */ export function mapConcat(f: (a: A) => Iterable) { return (self: C.Stream) => mapConcat_(self, f) }