wiki:Functions/Foldr

Version 1 (modified by schiptsov, 5 years ago) ( diff )

--

foldr

(define foldr (lambda (f z xs)
                (if (null? xs)
                  z
                  (f (car xs) (foldr f z (cdr xs))))))
Note: See TracWiki for help on using the wiki.