seq2d

A 2D Sequence Implementation

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License GPL-2.0-only
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:25

Installation

nimble install seq2d
choosenim install seq2d
git clone https://github.com/avahe-kellenberger/seq2d

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
seq2d - - - - - - -

Source

Repository https://github.com/avahe-kellenberger/seq2d
Homepage https://github.com/avahe-kellenberger/seq2d
Registry Source nimble_official

README

Seq2D

Two-dimensional array implementation.

Usage

var grid = newSeq2D[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