Syntax | (append a b […]) → concatenated list |
---|---|
Arguments | a: A list, string, integer, boolean or literal you want to start the new list. |
b: A list, string, integer, boolean or literal you want to append on to the previous argument. | |
[…]: Optional list, string, integer, boolean or literal. Can be repeated. | |
Returns | list: A new list containing all the elements of the passed in arguments with their order preserved. |
Category | list |
Description | Makes a new list with all the elements of the passed in arguments in the order that they came in at. At least two arguments must be provided. If the first argument is not a list, an empty list with that argument as first element will be created, and the rest of the arguments will be appended to that list |
(append '(a b c) '(d e))
Will return the list (a b c d e)
(append '(a) '(d) '(b e))
Will return the list (a d b e) Return to Functions list