Proposal #3999: Improved folds for Data.Map and Data.IntMap

Roman Leshchinskiy rl at cse.unsw.edu.au
Thu Apr 22 12:15:43 EDT 2010


On 23/04/2010, at 00:32, Gwern Branwen wrote:

> On Thu, Apr 22, 2010 at 4:08 AM, Roman Leshchinskiy <rl at cse.unsw.edu.au> wrote:
>> 
>> FWIW, I'm a bit surprised that you need foldl on lists anyway. I thought everybody uses foldl'.
> 
> Not nearly: http://www.reddit.com/r/haskell/comments/bmd5u/thunks_and_haskell/c0nl7u2
> 
> There are a lot of foldl uses out there.

Hmm, I'd love to see some real-world uses of foldl. I have no idea what to optimise it for in vector. Unfortunately, the link above doesn't give any examples.

Roman




More information about the Libraries mailing list