Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Fold

Name: Anonymous 2008-02-02 15:04

http://www.haskell.org/haskellwiki/Fold
Haskell has map in terms of 'foldr ((:) . f) []'

How would you implementd foldr, and then map with foldr in scheme/lisp?

Name: 11 2008-02-02 20:38

>>12
scheme does not provide foldr, and your definition of foldr is not tail recursive, which makes my solution ``better''.
Unless you define a tail-recursive foldr I see no reason why one would prefer your solution.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List