Prepend
[expr, item]Prepend
[expr]Prepend[elem][expr]
is equivalent to Prepend[expr,elem]
. Prepend
is similar to Append
, but adds item to the beginning
of expr:
Prepend[{2, 3, 4}, 1]
Prepend
works on expressions with heads other than List
:
Prepend[f[b, c], a]
Unlike Join
, Prepend
does not flatten lists in item:
Prepend[{c, d}, {a, b}]