[Haskell-cafe] folds with escapes

Bernie Pope bjpop at csse.unimelb.edu.au
Wed Jul 4 21:04:48 EDT 2007

On 05/07/2007, at 10:08 AM, Michael Vanier wrote:

> Can you do dropWhile in terms of foldr?  I don't see how.
> Mike

I considered that very question in an article I wrote for the  
Monad.Reader magazine:


If you are really keen, you might want to try altering the "working  
backwards with tuples" version into one which is properly lazy (many  
people who read the paper pointed out the omission).


More information about the Haskell-Cafe mailing list