Skip to content

Instantly share code, notes, and snippets.

@cushon
Created March 1, 2011 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cushon/848767 to your computer and use it in GitHub Desktop.
Save cushon/848767 to your computer and use it in GitHub Desktop.
foldl implemented with foldr
(define (foldl f b l)
((foldr (lambda (x y) (lambda (b) (y (f x b)))) values l) b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment