most function
A list without its last element.
How to write it
most(list)
- list
- The list. Takes a list.
Examples
most([1, 2, 3])In the solver,
Open in the solvermost([1, 2, 3])gives[1, 2].
Related functions
- nest
Apply a function again and again to a value.
- map_thread
Apply a function to corresponding elements of several lists.
- nest_list
The steps of nest: the value after each application, starting from the first.
- map
Apply a function to every element of a list.
- part
Read part of a list by position, counting from 1; also written list[i].
- list
A list of the arguments.