reduce-right[procedure] reduce-right f ridentity list
SRFI-1: reduce-right is the fold-right variant of reduce.
It obeys the following definition:
(reduce-right f ridentity '()) = ridentity
(reduce-right f ridentity '(e1)) = (f e1 ridentity) = e1
(reduce-right f ridentity '(e1 e2 ...)) =
(f e1 (reduce f ridentity (e2 ...)))
...in other words, we compute (fold-right f ridentity list).
See also reduce, fold-right.
|