# join function

Join lists into one.

## How to write it

### join(a, b, ...)

**a**

A list. Takes a list.

**b**

A list. Takes a list.

## Examples

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

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

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

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

## Related functions

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

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

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

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

  The head of an expression: the name of the function it is a call of.
- [list](https://hilberon.com/library/list)

  A list of the arguments.
- [fold_list](https://hilberon.com/library/fold_list)

  The steps of fold: every partial result, starting from the first value.

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