reduce

Name

reduce -- Repeatedly apply PROC to a current value and a member of L.

Synopsis

(reduce proc init l)

Description

Repeatedly apply PROC to a current value and a member of L. The initial current value is the first member of the list. The list is processed from left to right. The final result is returned, unless the list is empty, in which case INIT is returned. Compare to accumulate.

Implementation Notes

Module: (app scwm listops)

Defined in scheme/listops.scm at line 61 (CVS log)