keen/col/mut-grid
Sourcemake[t] t mut-grid(width nat32, height nat32, f t mut((nat64, nat64)))Creates a new grid, setting every element to
f[x, y].mut-grid-rows[t] record mut (has private fields)mut-grid-with-coords[t] record mut
Mutable grid (matrix) type. This is intended for data that happens to fall in a grid; it may not be ideal for linear algebra.
This is row-major, meaning rows are stored contiguously. So, iteration functions typically start with the top row left-to-right, then the second row left-to-right, etc.
Grid elements are mutable, but changing the width or height is not supported.