Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed a problem with filterNot implementation being changed in Scala …

…2.10.0-M7. It was not lazy any more
  • Loading branch information...
commit 057b20ab254e6c3dfc42d0ffa232b0cffdb7f7a1 1 parent 7a977b1
@jesseeichar jesseeichar authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  core/src/main/scala/scalax/io/LongTraversableLike.scala
View
1  core/src/main/scala/scalax/io/LongTraversableLike.scala
@@ -179,6 +179,7 @@ trait LongTraversableLike[+A, +Repr <: LongTraversableLike[A, Repr]] extends Tra
withIterator(_.reduceRight(op))
override /*TraversableLike*/ def filter(p: A => Boolean): Repr = build(_ filter p)
+ override /*TraversableLike*/ def filterNot(p: A => Boolean): Repr = filter(!p(_))
override /*TraversableLike*/ def map[B, That](f: A => B)(implicit bf: CanBuildFrom[Repr, B, That]): That = bf(repr) match {
case ltf:LongTraversableBuilder[B,That] => ltf.fromIterator(CloseableIteratorOps(iterator).map(f), context)
case b =>
Please sign in to comment.
Something went wrong with that request. Please try again.