@mojir/lits
Version:
Lits is a pure functional programming language implemented in TypeScript
9 lines (8 loc) • 299 B
TypeScript
/**
* Creates a grid from a flat array with specified dimensions
*
* @param flatArray The flat array of values
* @param rows Number of rows in the resulting grid
* @returns A 2D array representing the grid
*/
export declare function fromArray(flatArray: unknown[], rows: number): unknown[][];