list function
A list of the arguments.
How to write it
list(a, ...)
- a
- An element. Takes an expression.
Examples
list(1, 2, 3)In the solver,
Open in the solverlist(1, 2, 3)gives[1, 2, 3].
Related functions
- nest_list
The steps of nest: the value after each application, starting from the first.
- fold_list
The steps of fold: every partial result, starting from the first value.
- map
Apply a function to every element of a list.
- length
Number of elements in a list.
- map_thread
Apply a function to corresponding elements of several lists.
- last
The last element of a list.