wiki:Functions/Foldr

Version 2 (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.