Name
prepend — Prepends a list with a new element
Synopsis
list
prepend
( |
list
| LIST, |
| |
any
| ELEMENT); |
Parameters
-
list
LIST
List
-
any
ELEMENT
Element to prepend
Description
Creates a new list that is identical to the list LIST but has the value ELEMENT prepended as additional element.
Usage
prepend ([1, 4], 8) -> [8, 1, 4]