[Haskell-cafe] Re: How to generalize executing a series of
commands, based on a list?
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.
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>
> 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
> Henk-Jan van Tuyl
> http://Van.Tuyl.eu/ <http://van.tuyl.eu/>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe