Re: How do you copy an array?




Barry Margolin wrote:

Kim Minh Kaplan wrote:

You seem to be looking for COPY-SEQ.

No he isn't. COPY-SEQ only works for one-dimensional arrays, he's
trying to copy a multi-dimensional array.

Ah yes, I did not pay enough attention. Now close your eyes here comes
some hugly code:

(with-input-from-string
(s (with-output-to-string (s) (write grid1 :stream s)))
(read s))

--
Kim Minh.
http://www.kim-minh.com/

.



Relevant Pages

  • Re: sort multi-dimensional array
    ... Balaskas Evaggelos wrote: ... The example are for multi-dimensional array of one-dimensional arrays. ... want to essentially sort a 'table' of data by one of the columns. ...
    (comp.lang.php)
  • Re: How do you copy an array?
    ... COPY-SEQ only works for one-dimensional arrays, ... trying to copy a multi-dimensional array. ... Barry Margolin, barmar@xxxxxxxxxxxx ...
    (comp.lang.lisp)