Re: copying arrays



Q wrote:

CL-USER 37 > (setf a (make-array 5 :initial-element 7))
#(7 7 7 7 7)

You should use defparameter or defvar, if you didn't bound "a" before.

How do I pass copies of the array around, instead of the array
itself? I don't want them to be eq. But, it'd be nice if they were
equal :)

http://www.cliki.net/SHALLOW-COPY-ARRAY

--
Frank Buss, fb@xxxxxxxxxxxxx
http://www.frank-buss.de, http://www.it4-systems.de
.