# most function

A list without its last element.

## How to write it

### most(list)

**list**

The list. Takes a list.

## Examples

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

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

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

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

## Related functions

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

  Apply a function again and again to a value.
- [map_thread](https://hilberon.com/library/map_thread)

  Apply a function to corresponding elements of several lists.
- [nest_list](https://hilberon.com/library/nest_list)

  The steps of nest: the value after each application, starting from the first.
- [map](https://hilberon.com/library/map)

  Apply a function to every element of a list.
- [part](https://hilberon.com/library/part)

  Read part of a list by position, counting from 1; also written list\[i\].
- [list](https://hilberon.com/library/list)

  A list of the arguments.

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