Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type Set = Int => Boolean
- /**
- * Indicates whether a set contains a given element.
- */
- def contains(s: Set, elem: Int): Boolean = s(elem)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement