From: Peter Karlsson
Subject: the copy-seq function
Date: 
Message-ID: <3195E0DF.6FC@und.ida.liu.se>
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)

From: Howard R. Stearns
Subject: Re: the copy-seq function
Date: 
Message-ID: <319A54C5.4487EB71@elwoodcorp.com>
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
From: Luca Pisati
Subject: Re: the copy-seq function
Date: 
Message-ID: <31A1F63B.7DE1@nichimen.com>
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)