Re: Array
- To: mathgroup at smc.vnet.net
- Subject: [mg69244] Re: [mg69220] Array
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Sun, 3 Sep 2006 23:46:29 -0400 (EDT)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
Set has attribute HoldFirst, use Evaluate Attributes[Set] {HoldFirst, Protected, SequenceHold} Clear[A]; Evaluate[Array[A,3]] = {1, 2, 3}; Bob Hanlon ---- Bruce Colletti <vze269bv at verizon.net> wrote: > The command: > > {A[1], A[2], A[3]} = {1, 2, 3} > > assigns a value to each A-variable. However, the command: > > Array[A,3] = {1,2,3} > > generates an error message. > > What is the difference between the two lines? > > Thankx. > > Bruce >