rest function
A list without its first element.
How to write it
rest(list)
- list
- The list. Takes a list.
Examples
rest([1, 2, 3])In the solver,
Open in the solverrest([1, 2, 3])gives[2, 3].
Related functions
- reverse
A list in reverse order.
- replace_part
A list with the part at a position replaced; write position -> value.
- riffle
A list with a value put between its elements.
- range
The whole numbers in a range, as a list.
- rotate_left
A list with its elements moved to the left, the first ones going to the end.
- prepend
A list with an element added at the start.