Also, since indexing starts at 0, you would need to do:
for i in 0..<nrow(dt): ...
and the nrow proc could be simplified to:
proc nrow(dt: MyTable) : Natural {.inline.} = dt.name.len
Also, since indexing starts at 0, you would need to do:
for i in 0..<nrow(dt): ...
and the nrow proc could be simplified to:
proc nrow(dt: MyTable) : Natural {.inline.} = dt.name.len