Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scala> x forall ( _ == 1)
- res3: Boolean = true
- scala> x forall ( _ == 2)
- res4: Boolean = false
- scala> var x: Option[Int] = None
- x: Option[Int] = None
- scala> x forall ( _ == 2)
- res5: Boolean = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement