Create a two-dimensional array at runtime: Difference between revisions
Content added Content deleted
No edit summary |
m (→{{header|J}}) |
||
Line 576: | Line 576: | ||
=={{header|J}}== |
=={{header|J}}== |
||
The natural ways of creating a two dimensional array in J are <code>i.</code> and <code>$</code> |
The natural ways of creating a two dimensional array, from array dimensions, in J are <code>i.</code> and <code>$</code> |
||
<lang j> array1=:i. 3 4 NB. a 3 by 4 array with arbitrary values |
<lang j> array1=:i. 3 4 NB. a 3 by 4 array with arbitrary values |