Proposal: Add strict versions of foldlWithKey and insertLookupWithKey to Data.Map

Brian Bloniarz brian.bloniarz at gmail.com
Fri Sep 3 02:46:35 EDT 2010


On Sun, 29 Aug 2010 15:34:29 +0200
Johan Tibell <johan.tibell at gmail.com> wrote:
> Proposal: Add strict versions of foldlWithKey and insertLookupWithKey to
> Data.Map

+1, insertLookupWithKey' I could have used recently.

Is there some reason why all the other WithKey functions don't require
strict variants? Asked another way, suppose I want to build a Map via
foldl' (unionWith (+)) without space leaks, is that possible?


More information about the Libraries mailing list