PrependTo

PrependTo[list, e] prepends e to list and returns the modified list.

Attributes[PrependTo] := {HoldFirst, Protected}

Simple examples

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