There’s a nice Scala Set tip in the book, Functional Programming Patterns in Scala and Clojure. The tip is this:
You can use a
Set
as a predicate to a function.
(A predicate is just a function/method that returns a Boolean
value.)
There’s a nice Scala Set tip in the book, Functional Programming Patterns in Scala and Clojure. The tip is this:
You can use a
Set
as a predicate to a function.
(A predicate is just a function/method that returns a Boolean
value.)