[Haskell-beginners] [Haskell-cafe] select :: [(Float, a)] -> a -- Weighted stochastic selection - help?

C.M.Brown cmb21 at kent.ac.uk
Fri Sep 5 16:12:05 EDT 2008

> Can you give an example? I don't see how that can be done using
> Control.Monad.State(.Strict).State, unless invocations of put or modify are
> considered side effects.

Actually, yes, sorry; I do see your point. I guess it's just IO then.


More information about the Beginners mailing list