User Tools

Site Tools


modding:function:append

append

append

append

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

Example

(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

modding/function/append.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1