Skip to content

Prepend

Prepend[list, e] returns list with e prepended.

Attributes[Prepend] := {Protected}

Simple examples

In[1]:= Prepend[{a, b}, c]
Out[1]= {c, a, b}
In[2]:= Prepend[foo[a, b], c]
Out[2]= foo[c, a, b]