list.sum

Syntax

a := list.sum(l)

Get the sum of all entries in list l.

This is done using the add “+” operator in order. If that operator is not valid on the necessary entry types, an error will occur.

Returns:

a - The sum of all entries in the list.

Arguments:

l - The list to sum.