|
|
|
@ -1169,7 +1169,8 @@ manipulating the state cell. |
|
|
|
|
|
|
|
The literature often presents the state monad with a fourth equation, |
|
|
|
which states that $\getF$ is idempotent. However, this equation is |
|
|
|
redundant as it is derivable from the first and third equations. |
|
|
|
redundant as it is derivable from the first and third |
|
|
|
equations~\cite{Mellies14}. |
|
|
|
|
|
|
|
We can implement a monadic variation of the $\incrEven$ function that |
|
|
|
uses the state monad to emulate manipulations of the state cell as |
|
|
|
|