Monadic version of functions for containers (adjustM, updateWithKeyM, etc)

Jean-Philippe Bernardy jeanphilippe.bernardy at gmail.com
Tue Sep 28 08:35:30 EDT 2010


On Tue, Sep 28, 2010 at 12:08 AM, Thomas DuBuisson
<thomas.dubuisson at gmail.com> wrote:

> If the number of functions becomes a concern we can be effective and
> still conservative.  Take Data.Map as an example, we can make
> updateLookupWithKeyM and omit alterM,
> [***]

alter is the most powerful function. It can perform an insertion,
while updateLookupWithKey
cannot.

Cheers,
JP.


More information about the Libraries mailing list