Is this expected behaviour?
- To: mathgroup at smc.vnet.net
- Subject: [mg15543] Is this expected behaviour?
- From: Julian Stoev <stoev at usa.net>
- Date: Tue, 26 Jan 1999 13:44:30 -0500 (EST)
- Organization: Seoul National University, Republic of Korea
- Sender: owner-wri-mathgroup at wolfram.com
In[235]:= mmm=Table[{i,j}, {i,5}] Table[mmm[[j]],{j,5}] Out[235]= {{1,j},{2,j},{3,j},{4,j},{5,j}} Out[236]= {{1,1},{2,2},{3,3},{4,4},{5,5}} Observe, that during table2 pickups, the index j is applied locally to the elements. I think this may be avoided in the design of biult in Table function, because this behaviour may have dangerous side effects. --Julian Stoev