import * as Chunk from "../Collections/Immutable/Chunk/core.js"; import type * as O from "../Option/index.js"; import type { Sync } from "./core.js"; /** * Applies the function `f` to each element of the `Iterable` and * returns the results in a new `readonly B[]`. * * 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) => Sync): Sync>; /** * Applies the function `f` to each element of the `Iterable` and * returns the results in a new `readonly B[]`. * * 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) => Sync): (as: Iterable) => Sync>; /** * Applies the function `f` to each element of the `Iterable` and runs * produced Syncs 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) => Sync, __trace?: string): Sync; /** * Applies the function `f` to each element of the `Iterable` and runs * produced Syncs 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) => Sync, __trace?: string): (as: Iterable) => Sync; /** * Evaluate each Sync in the structure from left to right, and collect the * results. For a parallel version, see `collectAllPar`. */ export declare function collectAll(as: Iterable>): Sync>; /** * Evaluate each Sync in the structure from left to right, and discard the * results. For a parallel version, see `collectAllUnitPar`. */ export declare function collectAllUnit(as: Iterable>, __trace?: string): Sync; /** * Evaluate each Sync in the structure with `collectAll`, and collect * the results with given partial function. */ export declare function collectAllWith_(as: Iterable>, pf: (a: A) => O.Option, __trace?: string): Sync>; /** * Evaluate each Sync 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>) => Sync>; //# sourceMappingURL=excl-forEach.d.ts.map