Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val fraction = new PartialFunction[Int, Int] {
- def apply(d: Int) = 42 / d
- def isDefinedAt(d: Int) = d != 0
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement