Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val x : Option[Int] = None
- x match {
- case None =>
- //do none stuff
- case Some(y) =>
- // do some stuff, and you can use y:Int here
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement