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. Cheers, JP. On 9/5/06, John Goerzen <jgoerzen@complete.org> wrote:
Tue Sep 5 13:11:49 CDT 2006 John Goerzen <jgoerzen@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@haskell.org http://www.haskell.org/mailman/listinfo/libraries