// ets_tracing: off import type * as CK from "../../../../Collections/Immutable/Chunk/index.js" import type * as T from "../../../../Effect/index.js" import { identity } from "../../../../Function/index.js" import type * as C from "../core.js" import * as MapConcatChunk from "./mapConcatChunk.js" import * as MapEffect from "./mapEffect.js" /** * Effectfully maps each element to a chunk, and flattens the chunks into * the output of this stream. */ export function mapConcatChunkEffect_( self: C.Stream, f: (a: A) => T.Effect> ): C.Stream { return MapConcatChunk.mapConcatChunk_(MapEffect.mapEffect_(self, f), identity) } /** * Effectfully maps each element to a chunk, and flattens the chunks into * the output of this stream. * * @ets_data_first mapConcatChunkEffect_ */ export function mapConcatChunkEffect( f: (a: A) => T.Effect> ) { return (self: C.Stream) => mapConcatChunkEffect_(self, f) }