[Haskell-cafe] Re: How to generalize executing a series of
commands, based on a list?
Peter Schmitz
ps.haskell at gmail.com
Thu Nov 18 22:05:25 EST 2010
Thanks very much for the url; helpful site.
I got mapM to do what I wanted (first time I've used it); cool function; now
I understand it.
At your note for mapM I noticed (mapM print);
I've been using (show [list]) so much, (mapM print) will be nice for
formatting while debugging, etc.
Thanks again!
-- Peter
On Thu, Nov 18, 2010 at 3:44 PM, Henk-Jan van Tuyl <hjgtuyl at chello.nl>wrote:
> On Thu, 18 Nov 2010 21:20:10 +0100, Peter Schmitz <ps.haskell at gmail.com>
> wrote:
>
> Thank you very much for the help. Good tips for improving my code design.
>> I'm new to sequence, mapM, and mapM_; I've seen mapM a lot while reading
>> code and wanted to learn it; now I have a reason! Thanks.
>> -- Peter
>>
>>
> You can find explanations, with usage examples, of these functions at
> http://members.chello.nl/hjgtuyl/tourdemonad.html
>
> Regards,
> Henk-Jan van Tuyl
>
>
> --
> http://Van.Tuyl.eu/ <http://van.tuyl.eu/>
> http://members.chello.nl/hjgtuyl/tourdemonad.html
> --
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20101118/653a44e0/attachment.html
More information about the Haskell-Cafe
mailing list