From 582895005aaf2aa18f66f4af861abfdae1619676 Mon Sep 17 00:00:00 2001 From: darkf Date: Tue, 29 Oct 2013 03:05:34 -0700 Subject: [PATCH] update state monad example for empty tuple --- examples/monads/state_monad.lamb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/monads/state_monad.lamb b/examples/monads/state_monad.lamb index e4a666c..7943cf7 100644 --- a/examples/monads/state_monad.lamb +++ b/examples/monads/state_monad.lamb @@ -25,7 +25,7 @@ bind(("state", h), f) -> get = ("state", \st -> (st, st)). -- sets the state, and the result to () -put(st) -> ("state", \_ -> ((), st)). +put(st) -> ("state", \_ -> ((,), st)). derp = return(10).