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

C.M.Brown cmb21 at kent.ac.uk
Fri Sep 5 15:51:55 EDT 2008


It's certainly possibly to define or use State in a way  that it gives
the impression of modifying a global state, it therefore having a side-effect.

Chris.


On Fri, 5 Sep 2008, Daniel Fischer wrote:

> Am Freitag, 5. September 2008 21:06 schrieb C.M.Brown:
> > Some Monads (such as State and IO) allow side effects and are
> > therefore not pure.
>
> State allows side effects? How that?
> >
> > HTH,
> > Chris.
> >
> > On Fri, 5 Sep 2008, Andrew Wagner wrote:
> > > [snip]
> > > ... in a purely functional way, i.e. no monads.
> > > [snip]
> > >
> > > Err, what? Monads aren't purely functional?
>
>


More information about the Beginners mailing list