sum - part-cw/lambdanative GitHub Wiki

(sum lst)

sum returns the sum of all list elements

Parameter Description
lst List to operate on

Example

Example 1: Obtain the sum of a list from 1 to 5.

> (sum '(1 2 3 4 5))
15