List Operations
- To: mathgroup at smc.vnet.net
- Subject: [mg38665] List Operations
- From: "Hermann Schmitt" <schmitther at netcologne.de>
- Date: Sat, 4 Jan 2003 07:25:48 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
1)
in the following example len1 and len2 are assigned values.
In[2]=status = {len1, len2}
status1 = {3, 4};
{len1, len2} = status1;
Print["status: ", status];
Print["len1: ", len1, " len2: ", len2]
Out[2]= {len1, len2}
status: {3, 4}
len1: 3 len2: 4
In[7]:=
2)
In this example, len1 and len2 are not assigned values, because status1 is
assigned to status directly.
In[2]=status = {len1, len2}
status1 = {3, 4};
status = status1;
Print["status: ", status];
Print["len1: ", len1, " len2: ", len2]
Out[2]= {len1, len2}
status: {3, 4}
len1: len1 len2: len2
In[7]:=
My question is:
Can the result of example 1) be achieved in any way using the variables
status and status1
Hermann Schmitt