Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

accumulate function

Running totals of a list.

How to write it

accumulate(list)

list
The list. Takes a list.

Examples

  • accumulate⁡([1,2,3])=[1,3,6]\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
  • append

    A list with an element added at the end.

  • union

    The elements in any of some lists, each once, in order.

  • apply

    Replace the head of an expression, or the brackets of a list, with a function.

  • total

    Sum of the elements of a list.

  • complement

    The elements of a list that are in none of the others.

  • thread

    Apply a function to corresponding elements of lists.