Jump to content

Create a two-dimensional array at runtime: Difference between revisions

m
Wrong 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]</lang>
 
(2dimTest 5 5)</lang>
Output:
<pre>(NIL NIL NIL NIL NIL)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.