t6637.nim 206 B

12345678910
  1. type
  2. Grid2D*[I: SomeInteger, w, h: static[I], T] = object
  3. grid: array[w, array[h, T]]
  4. Grid2DIns = Grid2D[int, 2, 3, uint8]
  5. let a = Grid2DIns()
  6. doAssert a.grid.len == 2
  7. doAssert a.grid[0].len == 3