State Monad
State monad contains a function that is performed on some context to produce some value, as well as some new context:
1 | data State ContextType ValueType = |
State monad contains a function that is performed on some context to produce some value, as well as some new context:
1 | data State ContextType ValueType = |