array2d
A 2D Array Implementation
Summary
| Latest Version | Unknown |
|---|---|
| License | GPL-2.0-only |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:25 |
Tags
Installation
nimble install array2d
choosenim install array2d
git clone https://github.com/avahe-kellenberger/array2d
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| array2d | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/avahe-kellenberger/array2d |
|---|---|
| Homepage | https://github.com/avahe-kellenberger/array2d |
| Registry Source | nimble_official |
README
Array2D
Two-dimensional array implementation.
Usage
var grid = newArray2D[int](5, 6)
# Set data at a particular point in the "grid"
grid[2, 3] = 14
doAssert(grid[2, 3] == 14)
# Iterate over the grid
for x, y, value in grid.items:
echo "[" & $x & ", " & $y & "] = " & $value
# Items can be mutated using `mitems`
for x, y, value in grid.mitems:
if x mod 2 == 0:
value = 1