diff options
-rw-r--r-- | src/library/scala/collection/generic/VectorTemplate.scala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/library/scala/collection/generic/VectorTemplate.scala b/src/library/scala/collection/generic/VectorTemplate.scala index 31f728e835..f8be15016a 100644 --- a/src/library/scala/collection/generic/VectorTemplate.scala +++ b/src/library/scala/collection/generic/VectorTemplate.scala @@ -257,12 +257,12 @@ trait VectorTemplate[+A, +This <: VectorTemplate[A, This] with Vector[A]] extend super.endsWith(that) } - // override def indexOfSeq[B >: A](that: Sequence[B]): Int = { - // var i = 0 - // val last = length - that.length - // while (i <= last && !startsWith(that, i)) i += 1 - // negLength(i) - // } + override def indexOfSeq[B >: A](that: Sequence[B]): Int = { + var i = 0 + val last = length - that.length + while (i <= last && !startsWith(that, i)) i += 1 + negLength(i) + } override def equals(that: Any): Boolean = that match { case that1: Vector[a] => |