AppendTo

AppendTo[list, e] appends e to list and returns the modified list.

Attributes[AppendTo] := {HoldFirst, Protected}

Simple examples

In[1]:= CompoundExpression[l = {a, b}, AppendTo[l, c], l]
Out[1]= {a, b, c}