append function
A list with an element added at the end.
How to write it
append(list, x)
- list
- The list. Takes a list.
- x
- The element to add. Takes an expression.
Examples
append([1, 2], 3)In the solver,
Open in the solverappend([1, 2], 3)gives[1, 2, 3].
Related functions
- apply
Replace the head of an expression, or the brackets of a list, with a function.
- accumulate
Running totals of a list.
- complement
The elements of a list that are in none of the others.
- union
The elements in any of some lists, each once, in order.
- constant_array
A list of copies of a value.
- total
Sum of the elements of a list.