Created
January 3, 2014 15:28
-
-
Save longliveenduro/8239718 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| val right: \/[String, Int] = \/-(1) | |
| val left: \/[String, Int] = -\/("errorMessage") | |
| // or in another way (let the compiler infer the same types as above) | |
| val right2 = 1.right[String] | |
| val left2 = "errorMessage".left[Int] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment