The State Monad

December 13, 2012