Created
January 3, 2014 16:56
-
-
Save longliveenduro/8241557 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 success1 = 1.success[String] | |
| val failure1 = "failure1".failure[Int] | |
| val failure2 = "failure2".failure[Int] | |
| // use +++ on Validation | |
| val result = success1 +++ | |
| failure1 +++ | |
| failure2 | |
| // result is Failure(failure1failure2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment