You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(define (get)
"Return the current state as a monadic value."
(lambda (state)
(with-monad %store-monad
(return (cons state state)))))
put
(define (put value)
"Set the current state to VALUE and return the previous state as a monadic
value."
(lambda (state)
(with-monad %store-monad
(return (cons state value)))))