Anonymous user
Create a two-dimensional array at runtime: Difference between revisions
Create a two-dimensional array at runtime (view source)
Revision as of 10:31, 30 April 2010
, 14 years agoWrong markup
m (Forgot the test call) |
m (Wrong markup) |
||
Line 647:
(set (nth A 3 3) 999) # Set A[3][3] to 999
(mapc println A) # Print all
(get A 3 3) ) ) # Return A[3][3]
(2dimTest 5 5)</lang>
Output:
<pre>(NIL NIL NIL NIL NIL)
|