Mathematica 9 is now available

Documentation / Mathematica / Built-in Functions / Programming / Assignments /

Further Examples: AppendTo

This defines a list.

In[1]:=

Out[1]=

This appends the number to the end of the list.

In[2]:=

Out[2]=

The original list is changed as a side effect.

In[3]:=

Out[3]=

On the other hand, Append does not change the new version of the list.

In[4]:=

Out[4]=

In[5]:=

Out[5]=

In[6]:= b =.



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.