import type { FnU2 } from "@thi.ng/api"; /** * Syntax sugar for `map(fn, range2d(cols, rows))`. Returns iterator yielding * values of given 2-arg function `fn` which is called repeatedly with `x` and * `y` grid coordinates. The iteration order is always row-major. * * @example * ```ts tangle:../export/repeatedly2d.ts * import { repeatedly2d } from "@thi.ng/transducers"; * * console.log( * [...repeatedly2d((x, y) => [(x + 1) * 10, (y + 1) * 100], 2, 3)] * ); * // [ * // [ 10, 100 ], [ 20, 100 ], * // [ 10, 200 ], [ 20, 200 ], * // [ 10, 300 ], [ 20, 300 ] * // ] * ``` * * @param fn - value producer * @param cols - number of columns * @param rows - number of rows */ export declare function repeatedly2d(fn: FnU2, cols: number, rows: number): Generator; //# sourceMappingURL=repeatedly2d.d.ts.map