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