Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val fn : Try[PartialFunction[Int,Int]] = for {
- i <- Try(throw new Exception("error"))
- } yield {
- case 4 => i
- }
- println(fn)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement