Last active
August 29, 2015 14:02
-
-
Save djspiewak/468ea0b9644938fc20ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scala> val M = implicitly[Monad[Task]] | |
M: scalaz.Monad[scalaz.concurrent.Task] = scalaz.concurrent.Task$$anon$1@d55df51 | |
scala> var x = 0 | |
x: Int = 0 | |
scala> M point { x += 1 } | |
res0: scalaz.concurrent.Task[Unit] = scalaz.concurrent.Task@3f4898c5 | |
scala> x | |
res1: Int = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment