MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Array


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
> 



  • Prev by Date: Re: Array
  • Next by Date: Re: Array
  • Previous by thread: Re: Array
  • Next by thread: Re: Array