Creating A 2D Array
Last updated
Was this helpful?
Last updated
Was this helpful?
In most languages if I wanted to create a two-dimensional array, I would utilize some nested looping construct to generate columns of rows. The abstracts this away.
The make_matrix
function allows you to specify dimensions of a two-dimensional array with all positions initialized to the same value -- that third argument.