import type { Managed } from "../managed.js"; /** * Loops with the specified effectual function, collecting the results into a * list. The moral equivalent of: * * ``` * let s = initial * let as = [] as readonly A[] * * while (cont(s)) { * as = [body(s), ...as] * s = inc(s) * } * * A.reverse(as) * ``` */ export declare function loop(initial: Z, cont: (z: Z) => boolean, inc: (z: Z) => Z): (body: (z: Z) => Managed, __trace?: string | undefined) => Managed; /** * Loops with the specified effectual function purely for its effects. The * moral equivalent of: * * ``` * var s = initial * * while (cont(s)) { * body(s) * s = inc(s) * } * ``` */ export declare function loopUnit(initial: Z, cont: (z: Z) => boolean, inc: (z: Z) => Z): (body: (z: Z) => Managed, __trace?: string | undefined) => Managed; //# sourceMappingURL=loop.d.ts.map