update state monad example for empty tuple

This commit is contained in:
darkf 2013-10-29 03:05:34 -07:00
parent f1af997708
commit 582895005a
1 changed files with 1 additions and 1 deletions

View File

@ -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).