> Both arrays and sequences in Nim are value rather than reference types. > > This is not true, sequences are reference types, id suggest you to: > > 1st. Correct this.
Corrected. Thanks > 2nd. Use an array instead of a seq, something like this maybe: ... Using sequences serves two purposes, it introduces readers into the sequence data structure. Secondly, matrix data structures are often implemented in such a way that the number of items in the matrix can be changed for example when appending or removing data. Thanks for the implementation though, that is useful.
