RosettaCodeData/Task/Create-a-two-dimensional-array-at-runtime/J/create-a-two-dimensional-array-at-runtime-1.j

3 lines
134 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
array1=:i. 3 4 NB. a 3 by 4 array with arbitrary values
array2=: 5 6 $ 2 NB. a 5 by 6 array where every value is the number 2