import * as Chunk from "../Collections/Immutable/Chunk/core.js"; import type * as O from "../Option/index.js"; import type { Async } from "./core.js"; /** * Applies the function `f` to each element of the `Iterable` and * returns the results in a new `Chunk`. * * For a parallel version of this method, see `forEachPar`. * If you do not need the results, see `forEachUnit` for a more efficient implementation. */ export declare function forEach_(as: Iterable, f: (a: A) => Async): Async>; /** * Applies the function `f` to each element of the `Iterable` and * returns the results in a new `Chunk`. * * For a parallel version of this method, see `forEachPar`. * If you do not need the results, see `forEachUnit` for a more efficient implementation. * * @ets_data_first forEach_ */ export declare function forEach(f: (a: A) => Async): (as: Iterable) => Async>; /** * Applies the function `f` to each element of the `Iterable` and runs * produced effects sequentially. * * Equivalent to `asUnit(forEach(as, f))`, but without the cost of building * the list of results. */ export declare function forEachUnit_(as: Iterable, f: (a: A) => Async): Async; /** * Applies the function `f` to each element of the `Iterable` and runs * produced effects sequentially. * * Equivalent to `asUnit(forEach(as, f))`, but without the cost of building * the list of results. * * @ets_data_first forEachUnit_ */ export declare function forEachUnit(f: (a: A) => Async): (as: Iterable) => Async; /** * Applies the function `f` to each element of the `Iterable` and runs * produced effects in parallel, discarding the results. * * For a sequential version of this method, see `forEach_`. * * Optimized to avoid keeping full tree of effects, so that method could be * able to handle large input sequences. * * Additionally, interrupts all effects on any failure. */ export declare function forEachUnitPar_(as: Iterable, f: (a: A) => Async): Async; /** * Applies the function `f` to each element of the `Iterable` and runs * produced effects in parallel, discarding the results. * * For a sequential version of this method, see `forEach_`. * * Optimized to avoid keeping full tree of effects, so that method could be * able to handle large input sequences. * Behaves almost like this code: * * Additionally, interrupts all effects on any failure. * * @ets_data_first forEachUnitPar_ */ export declare function forEachUnitPar(f: (a: A) => Async): (as: Iterable) => Async; /** * Applies the function `f` to each element of the `Iterable` in parallel, * and returns the results in a new `Chunk`. * * For a sequential version of this method, see `forEach`. */ export declare function forEachPar_(as: Iterable, f: (a: A) => Async): Async>; /** * Applies the function `f` to each element of the `Iterable` in parallel, * and returns the results in a new `Chunk`. * * For a sequential version of this method, see `forEach`. * * @ets_data_first forEachPar_ */ export declare function forEachPar(f: (a: A) => Async): (as: Iterable) => Async>; /** * Evaluate each effect in the structure from left to right, and collect the * results. For a parallel version, see `collectAllPar`. */ export declare function collectAll(as: Iterable>): Async>; /** * Evaluate each effect in the structure in parallel, and collect the * results. For a sequential version, see `collectAll`. */ export declare function collectAllPar(as: Iterable>): Async>; /** * Evaluate each effect in the structure from left to right, and discard the * results. For a parallel version, see `collectAllUnitPar`. */ export declare function collectAllUnit(as: Iterable>): Async; /** * Evaluate each effect in the structure in parallel, and discard the * results. For a sequential version, see `collectAllUnit`. */ export declare function collectAllUnitPar(as: Iterable>): Async; /** * Evaluate each effect in the structure with `collectAll`, and collect * the results with given partial function. */ export declare function collectAllWith_(as: Iterable>, pf: (a: A) => O.Option): Async>; /** * Evaluate each effect in the structure with `collectAll`, and collect * the results with given partial function. * * @ets_data_first collectAllWith_ */ export declare function collectAllWith(pf: (a: A) => O.Option): (as: Iterable>) => Async>; /** * Evaluate each effect in the structure with `collectAll`, and collect * the results with given partial function. */ export declare function collectAllWithPar_(as: Iterable>, pf: (a: A) => O.Option): Async>; /** * Evaluate each effect in the structure with `collectAll`, and collect * the results with given partial function. * * @ets_data_first collectAllWithPar_ */ export declare function collectAllWithPar(pf: (a: A) => O.Option): (as: Iterable>) => Async>; //# sourceMappingURL=excl-forEach.d.ts.map