jan tolenaar / kiezellisp / index-of-everything

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.

make-html > (reduce + (series 10))
it: 55
make-html > (reduce + 100 (series 10))
it: 155