| Author |
Comment/Response |
Randall
|
12/07/06 12:08pm
Why is the effect of my module {}?
This example should just set a = b.
In[144]:=
Clear[zez,a,b]
zez[a_List,b_List]:=Module[{i},Do[Set[a[[i]],b[[i]]],{i,2}]]
In[146]:=
a={2,2}
b={4,4}
Trace[zez[a,b]]
Out[146]=
{2,2}
Out[147]=
{4,4}
Out[148]=
{}
In[78]:=
a
Out[78]=
{2,2} (should be {4,4} here)
URL: , |
|