# list function

A list of the arguments.

## How to write it

### list(a, ...)

**a**

An element. Takes an expression.

## Examples

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

  `list(1, 2, 3)`

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

  [Open in the solver](https://hilberon.com/?q=list%281%2C%202%2C%203%29)

## Related functions

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

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

  The steps of fold: every partial result, starting from the first value.
- [map](https://hilberon.com/library/map)

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

  Number of elements in a list.
- [map_thread](https://hilberon.com/library/map_thread)

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

  The last element of a list.

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