[Haskell-cafe] Map in Terms of Fold in terms of Map

Mark Spezzano mark.spezzano at chariot.net.au
Mon Mar 16 12:27:31 EDT 2009


Hi,

 

I’ve noticed that it’s possible to define map as foldr and foldr as a map.
Would this be sensible to define both in terms of each other in the Prelude?
i.e mutually recursive?

 

Cheers,

 

Mark

 


No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.557 / Virus Database: 270.11.15/2003 - Release Date: 15/03/2009
2:07 PM
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090317/851e6387/attachment.htm


More information about the Haskell-Cafe mailing list