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.

    3 people like this

    Posted: 1 years ago by Tomas Petricek