[Haskell-cafe] Change value of a variable

Deniz Dogan deniz.a.m.dogan at gmail.com
Sun Jun 7 15:23:17 EDT 2009

2009/6/7 ptrash <ptrash at web.de>:
> Hi, thanks for the answers.
> I want to make something like a counter. I have written a recursive method
> which for example runs x times and counts how many times it runs, and also
> count some other thinks. Add the end I want a statistic about certain thinks
> returned by the method.

Depending on exactly what you want, you may or may not want to look
into monads, specifically the State or Writer monad.  Could you give
some more specific details on what you are trying to accomplish?

Deniz Dogan

More information about the Haskell-Cafe mailing list