# head function

The head of an expression: the name of the function it is a call of.

## How to write it

### head(expr)

**expr**

Any expression: a number, a formula, a list or a matrix. Takes an expression.

## Examples

- $\displaystyle \operatorname{head}(f(x)) = f$

  `head(f(x))`

  In the solver, `head(f(x))` gives `f`.

  [Open in the solver](https://hilberon.com/?q=head%28f%28x%29%29)

## Related functions

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

  The elements that are in every one of some lists.
- [fold_list](https://hilberon.com/library/fold_list)

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

  Join lists into one.
- [fold](https://hilberon.com/library/fold)

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

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

  Nested lists flattened into one list.

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