TU-Berlin → Inst. f. Mathematik → Algebra und Zahlentheorie → KASH → Documentation → Reference Manual
KASH3 Reference Manual
search    

Function

Sum ( list l ) -> any

Description

Return the sum of the elements of `l'.
Note: `l' may consist of elements of different types. Generally `Sum' works on everything `+' can operate on.

Examples

Sum([1..100]);
Sum(["a","b","c"]);
Built: Mon Nov 14 21:12:39 UTC 2005 on mack
The KANT Group