darcs patch: Added Data.Map.insertWith'

Jean-Philippe Bernardy jeanphilippe.bernardy at gmail.com
Wed Sep 6 04:13:46 EDT 2006

I had decided to add such a function, though I never had come to do it.
My only worry is that if you want a consistent API you'll need a bunch
of functions with a strict version.


On 9/5/06, John Goerzen <jgoerzen at complete.org> wrote:
> Tue Sep  5 13:11:49 CDT 2006  John Goerzen <jgoerzen at complete.org>
>  * Added Data.Map.insertWith'
>  Use of insertWith can lead to memory leaks.  This function was
>  suggested by Udo Stenzel at
>  http://article.gmane.org/gmane.comp.lang.haskell.cafe/14864
>  This type of algorithm solved a real problem discussed in this thread:
>  http://thread.gmane.org/gmane.comp.lang.haskell.cafe/14852
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries

More information about the Libraries mailing list