[Haskell-beginners] Is this an appropriate use of the writer monad?
rpglover64 at gmail.com
Fri Mar 11 06:47:59 CET 2011
I need to (for class) write a minimax implementation.
I'm currently doing this by functionally defining the entire tree and later
pruning it down to the size I want.
My assignment requires that I output the number of nodes I evaluated. I am
considering wrapping the tree generation with the Writer monad (I'm not yet
certain how I'd do this).
Does this sound reasonable to you haskellers who know more than I? Would
anyone suggest a better way?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners