Create a two-dimensional array at runtime: Difference between revisions
Content added Content deleted
m (Forgot the test call) |
m (Wrong markup) |
||
Line 647: | Line 647: | ||
(set (nth A 3 3) 999) # Set A[3][3] to 999 |
(set (nth A 3 3) 999) # Set A[3][3] to 999 |
||
(mapc println A) # Print all |
(mapc println A) # Print all |
||
(get A 3 3) ) ) # Return A[3][3] |
(get A 3 3) ) ) # Return A[3][3] |
||
(2dimTest 5 5) |
(2dimTest 5 5)</lang> |
||
Output: |
Output: |
||
<pre>(NIL NIL NIL NIL NIL) |
<pre>(NIL NIL NIL NIL NIL) |