6.3.11 Prepending an element at the beginning of a list
The prepend
command adds an element to the beginning of a list.
-
prepend takes two arguments:
- prepend(x,L) returns a list containing x as the
first element followed by the elements of L.
Examples