Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Module Not Happy' topicStudent Support Forum > General > "Module Not Happy"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
CCOsborn
11/12/12 3:33pm

What is interesting to me and it not mentioned in the documentation is that, if...
l={1,2}
Append[l,x]
Results in {1,2,x}
Yet,
For[i=0,i<4,i++,Append[l,x]]
does not change l, why???
Yes, AppendTo does what you would expect.
What is the difference?

URL: ,

Subject (listing for 'Module Not Happy')
Author Date Posted
Module Not Happy CCOsborn 11/11/12 6:51pm
Re: Module Not Happy Nasser M. Ab... 11/11/12 11:43pm
Re: Module Not Happy CCOsborn 11/12/12 12:44pm
Re: Module Not Happy CCOsborn 11/12/12 3:33pm
Re: Module Not Happy CCOsborn 11/12/12 3:43pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic