Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

total function

Sum of the elements of a list.

How to write it

total(list)

list
The list. Takes a list.

Examples

  • total⁡([1,2,3])=6\displaystyle \operatorname{total}(\left[ 1, 2, 3 \right]) = 6
    total([1, 2, 3])

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

    Open in the solver
  • union

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

  • thread

    Apply a function to corresponding elements of lists.

  • accumulate

    Running totals of a list.

  • tally

    How often each element occurs: a list of element and count pairs.

  • append

    A list with an element added at the end.

  • take

    The first elements of a list.