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