Snippets tagged state

  • Alternative reader monad

    This is a reader monad, whit the difference that multiple reads access different parts of the state. This is done by building up a tuple (in the bind operator) that represents different parts of the state that can be accessed by different parts of the computation.

    5 people like this

    Posted: 8 years ago by Tomas Petricek