Created
January 23, 2016 16:07
-
-
Save NTCoding/af5d871e78e4b108087b 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
| def retF[A,B](a: A)(b: B): A => Future[B] = | |
| x => if (x == a) Future.successful(b) else throw ReturnFailed(s"$x did not equal $a") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment