226 Views
A pair of standard helper functions for the State monad. An article for object-oriented programmers. The State monad is completely defined by its two defining functions ( SelectMany and Return). While you can get by without them, two additional helper functions ( get and put) are so convenient that they're typically included.
0 comments