seq | a sequence |
COPY-SEQ function makes new sequence copy from old sequence. Note that there is no COPY-ARRAY function, but it can be emulated by this tricky code bellow:
(defun copy-array (array) (let ((dims (array-dimensions array))) (adjust-array (make-array dims :displaced-to array) dims)))
(let ((a "hello world")) (eq a (copy-seq a))) => NIL (let ((a "hello world")) (equal a (copy-seq a))) => T