Name

reduce

Usage

builtin-function

Syntax

(reduce reducer seq)
(reduce reducer seed seq)

Description

Returns the accumulated result of repeatly calling the function reducer on each element of seq. reducer is a function with two parameters. The first argument is the result so far, the second argument is the current element of seq.

user 1 > (reduce + (series 10))
it: 55
user 2 > (reduce + 100 (series 10))
it: 155