From: Oudeis
Subject: How to copy an array?
Date: 
Message-ID: <9cca45d2.0308011618.5ee698fe@posting.google.com>
Is there a standard function to copy a multidimensional array?

From: Matthew Danish
Subject: Re: How to copy an array?
Date: 
Message-ID: <20030802011546.GF17568@lain.mapcar.org>
On Fri, Aug 01, 2003 at 05:18:33PM -0700, Oudeis wrote:
> Is there a standard function to copy a multidimensional array?

No, but this comes up every so often.  See
http://www.cliki.net/shallow-copy-array

Keep in mind that shallow copying an array may not be what you want.
A good discussion of this issue is in Kent Pitman's paper:
http://www.nhplace.com/kent/PS/EQUAL.html

-- 
; Matthew Danish <·······@andrew.cmu.edu>
; OpenPGP public key: C24B6010 on keyring.debian.org
; Signed or encrypted mail welcome.
; "There is no dark side of the moon really; matter of fact, it's all dark."
From: Kent M Pitman
Subject: Re: How to copy an array?
Date: 
Message-ID: <sfwwudw3i9a.fsf@shell01.TheWorld.com>
····@hotmail.com (Oudeis) writes:

> Is there a standard function to copy a multidimensional array?

Read about ROW-MAJOR-AREF.
From: Pascal Costanza
Subject: Re: How to copy an array?
Date: 
Message-ID: <costanza-EE85EF.03331202082003@news.netcologne.de>
In article <····························@posting.google.com>,
 ····@hotmail.com (Oudeis) wrote:

> Is there a standard function to copy a multidimensional array?

This depends a little bit on what you want to do in detail, but 
adjust-array should be able to do the job, maybe in combination with 
make-array. Look up the definitions in the HyperSpec and especially 
study the displaced-to options of both functions.



Pascal