Hacker News new | ask | show | jobs
by ndeine 4468 days ago
Better yet, isn't that what the State Monad[1] is doing internally?

[1]: http://www.haskell.org/haskellwiki/State_Monad