prepend
prepend a value to a list
(list xs, any x) -> list
Returns a list consisting of x
followed by all elements of xs
.
Returns nil
if xs
is nil
Parameters
Name | Type | Description |
---|---|---|
xs |
list | The list to modify |
x |
any |
The value to prepend to xs |