Hi there.
I'm having a pretty big problem with the copy-seq function
when I'm copying a 2-dimensional array. When I write something
like this:
(setq foo (make-array '(2 2)))
(setq bar (copy-seq foo))
Then an error message pops up stating that it attempts to take the
length of a non-sequence!!!
It works fine with an 1-dimensional array, but not a 2-dimensional.
Please send an answer quickly.
Peter Karlsson (········@und.ida.liu.se)
Peter Karlsson wrote:
>
> Hi there.
>
> I'm having a pretty big problem with the copy-seq function
> when I'm copying a 2-dimensional array. When I write something
> like this:
>
> (setq foo (make-array '(2 2)))
>
> (setq bar (copy-seq foo))
>
> Then an error message pops up stating that it attempts to take the
> length of a non-sequence!!!
>
> It works fine with an 1-dimensional array, but not a 2-dimensional.
>
> Please send an answer quickly.
>
> Peter Karlsson (········@und.ida.liu.se)
Any array which is not one-dimensional is not a sequence. Sequences
only include lists and one-dimensional arrays (including strings and
bit-vectors).
-h
Peter Karlsson wrote:
> I'm having a pretty big problem with the copy-seq function
> when I'm copying a 2-dimensional array. When I write something
> like this:
> It works fine with an 1-dimensional array, but not a 2-dimensional.
As the name says, copy-seq copies a sequence, where a sequence is a
one dimensional "list" of elements. In fact a sequence can be a list,
a string, a one-dimensional array ...
--
Luca Pisati Nichimen Graphics Inc.
12555 West Jefferson Blvd. Suite 285, Los Angeles, CA 90066
Phone: (310) 577-0500; Fax: (310) 577-0577 ······@nichimen.com
(internet)