# drop function

A list without its first elements.

## How to write it

### drop(list, n)

**list**

The list. Takes a list.

**n**

How many elements to leave out. Takes a whole number.

## Examples

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

  `drop([1, 2, 3, 4], 2)`

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

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

## Related functions

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

  The first element of a list.
- [dimensions](https://hilberon.com/library/dimensions)

  The size of a list or a matrix, level by level.
- [flatten](https://hilberon.com/library/flatten)

  Nested lists flattened into one list.
- [count](https://hilberon.com/library/count)

  How many elements of a list equal a value.
- [fold](https://hilberon.com/library/fold)

  Combine the elements of a list from the left with a function, starting from a value.
- [constant_array](https://hilberon.com/library/constant_array)

  A list of copies of a value.

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