Re: Variables from Lists
- To: mathgroup at smc.vnet.net
- Subject: [mg26817] Re: Variables from Lists
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Thu, 25 Jan 2001 01:13:02 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <94gpsg$qmg@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
you should set $RecusionLimit=Infinity and buy more RAM.
The assigment
bd={bd,SBEND,L,1.5,K,-1.2}
will cause an inifinite recursion and is perfect nonsens.
Regards
Jens
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.