@effect-ts/system
Version:
Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.
16 lines • 433 B
TypeScript
import type { Managed } from "../managed.js";
/**
* Iterates with the specified effectual function. The moral equivalent of:
*
* ```
* let s = initial
*
* while (cont(s)) {
* s = body(s)
* }
*
* return s
* ```
*/
export declare function iterate<Z>(initial: Z): (cont: (z: Z) => boolean) => <R, E>(body: (z: Z) => Managed<R, E, Z>, __trace?: string | undefined) => Managed<R, E, Z>;
//# sourceMappingURL=iterate.d.ts.map