# rest function

A list without its first element.

## How to write it

### rest(list)

**list**

The list. Takes a list.

## Examples

- $\displaystyle \operatorname{rest}(\left[ 1, 2, 3 \right]) = \left[ 2, 3 \right]$

  `rest([1, 2, 3])`

  In the solver, `rest([1, 2, 3])` gives `[2, 3]`.

  [Open in the solver](https://hilberon.com/?q=rest%28%5B1%2C%202%2C%203%5D%29)

## Related functions

- [reverse](https://hilberon.com/library/reverse)

  A list in reverse order.
- [replace_part](https://hilberon.com/library/replace_part)

  A list with the part at a position replaced; write position -> value.
- [riffle](https://hilberon.com/library/riffle)

  A list with a value put between its elements.
- [range](https://hilberon.com/library/range)

  The whole numbers in a range, as a list.
- [rotate_left](https://hilberon.com/library/rotate_left)

  A list with its elements moved to the left, the first ones going to the end.
- [prepend](https://hilberon.com/library/prepend)

  A list with an element added at the start.

---
Source: https://hilberon.com/library/rest
