MathGroup Archive 2001

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

Search the Archive

Re: Variables from Lists


you should set $RecusionLimit=Infinity and buy more RAM.

The assigment


will cause an inifinite recursion and is perfect nonsens.


James Jones wrote:
> Hi,
> I have a list of data, but I want to assign a variable to that list, where
> the variable name is part of the list.
> i.e.   List = {bd, SBEND,L,1.5,K,-1.2}
>         bd = {bd,SBEND,1.5,-1.2}
> Obviously its trivial here, but I need to do it within a function so that
> Part[List,1] is assigned to List, without reassigning Part[List,1] within
> List, if that makes sense :-)
> i.e bd =!= { {bd, SBEND,L,1.5,K,-1.2}, SBEND, 1.5, -1.2}
> Any help much appreciated,
> James Jones
> Daresbury Lab.

  • Prev by Date: RE: matrices
  • Next by Date: Re: FORTRAN style, not OK?
  • Previous by thread: RE: Variables from Lists
  • Next by thread: Statistics functions in packages