Create a two-dimensional array at runtime: Difference between revisions
Create a two-dimensional array at runtime (view source)
Revision as of 15:04, 20 June 2021
, 2 years ago→{{header|Mathematica}}
Drkameleon (talk | contribs) (Added Arturo implementation) |
|||
Line 1,442:
> gc(); # force a garbage collection; may or may not actually collect the array, but it will be eventually</lang>
=={{header|Mathematica}}/{{header|Wolfram Language}}==
<lang Mathematica>arrayFun[m_Integer,n_Integer]:=Module[{array=ConstantArray[0,{m,n}]},
array[[1,1]]=RandomReal[];
array[[1,1]]
|