Create a two-dimensional array at runtime: Difference between revisions

Updated code to work with version 1.4 of Nim.
(→‎{{header|Wren}}: Fixed a potential bug, though results unaffected.)
(Updated code to work with version 1.4 of Nim.)
Line 1,503:
s = newSeq[seq[int]](h)
 
for i in 0 .. < h:
s[i].newSeq(w)</lang>
 
Anonymous user