diff options
Diffstat (limited to 'Scala')
-rw-r--r-- | Scala/funsets/src/main/scala/funsets/FunSets.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Scala/funsets/src/main/scala/funsets/FunSets.scala b/Scala/funsets/src/main/scala/funsets/FunSets.scala index 8b7778d..15a6bfc 100644 --- a/Scala/funsets/src/main/scala/funsets/FunSets.scala +++ b/Scala/funsets/src/main/scala/funsets/FunSets.scala @@ -43,7 +43,8 @@ object FunSets { /** * Returns the subset of `s` for which `p` holds. */ - def filter(s: Set, p: Int => Boolean): Set = (x => s(x) & p(x)) + //def filter(s: Set, p: Int => Boolean): Set = (x => s(x) & p(x)) + def filter(s: Set, p: Int => Boolean): Set = intersect(s, p) /** * The bounds for `forall` and `exists` are +/- 1000. |