[Haskell-cafe] monadic map on a Data.IntMap

minh thu noteed at gmail.com
Mon Sep 8 15:58:07 EDT 2008


2008/9/8 Jefferson Heard <jefferson.r.heard at gmail.com>:
> I suppose a
>
> mapM_ monadicFunction . Data.IntMap.toList $ m
>
> doesn't work for you?

Well, that's what I use (IntMap.elems in fact), but isn't there some
perfromance lost ?

Thu

>
> On Mon, Sep 8, 2008 at 2:11 PM, minh thu <noteed at gmail.com> wrote:
>> Hi,
>>
>> Is there something like a fmapM_ ?
>> In particular, I'd like to mapM_ a Data.IntMap instead of a List
>>
>> Thank you,
>> Thu
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>
>
>
> --
> I try to take things like a crow; war and chaos don't always ruin a
> picnic, they just mean you have to be careful what you swallow.
>
> -- Jessica Edwards
>


More information about the Haskell-Cafe mailing list