List Assignment Question
- To: mathgroup at smc.vnet.net
- Subject: [mg31801] List Assignment Question
- From: Jim Purdy <jpurdy at home.com>
- Date: Sun, 2 Dec 2001 04:25:36 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hello,
I want to do the following:
Given the list ,
data={abc, 1, 2.3, 3, 4}
do this:
First[data]=Rest[data] (wont work)
basically creating a variable named for the first element in the list
and assigning it to the remainder.
abc={1,2.3,3,4} would be the result.
There probably is a simple answer, but I can't find it.
Thanks in advance
Jim
- Follow-Ups:
- Re: List Assignment Question
- From: Ken Levasseur <Kenneth_Levasseur@uml.edu>
- Re: List Assignment Question