// ets_tracing: off import type { Effect } from "../../../../Effect/effect.js" import * as forEach from "../../../../Effect/excl-forEach.js" import type * as Chunk from "../core.js" /** * Effectfully maps the elements of this chunk in parallel. */ export function mapMParEffect_( self: Chunk.Chunk, n: number, f: (a: A) => Effect ): Effect> { return forEach.forEachParN_(self, n, f) } /** * Effectfully maps the elements of this chunk in parallel. * * @ets_data_first mapMParEffect_ */ export function mapMParEffect( n: number, f: (a: A) => Effect ): (self: Chunk.Chunk) => Effect> { return (self) => mapMParEffect_(self, n, f) }