# accumulate function

Running totals of a list.

## How to write it

### accumulate(list)

**list**

The list. Takes a list.

## Examples

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

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

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

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

## Related functions

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

  A list with an element added at the end.
- [union](https://hilberon.com/library/union)

  The elements in any of some lists, each once, in order.
- [apply](https://hilberon.com/library/apply)

  Replace the head of an expression, or the brackets of a list, with a function.
- [total](https://hilberon.com/library/total)

  Sum of the elements of a list.
- [complement](https://hilberon.com/library/complement)

  The elements of a list that are in none of the others.
- [thread](https://hilberon.com/library/thread)

  Apply a function to corresponding elements of lists.

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