diff options
author | Tiark Rompf <tiark.rompf@epfl.ch> | 2011-02-08 18:42:26 +0000 |
---|---|---|
committer | Tiark Rompf <tiark.rompf@epfl.ch> | 2011-02-08 18:42:26 +0000 |
commit | ac17c71b2357cf37386dec9644b5bdbab1e2fa4f (patch) | |
tree | b09ffbf1ea461c22d0ef8c3f0cd5425ebd3b95e2 /src/library | |
parent | 87809b72a32cd810b26667f1a50ed48b94c83593 (diff) | |
download | scala-ac17c71b2357cf37386dec9644b5bdbab1e2fa4f.tar.gz scala-ac17c71b2357cf37386dec9644b5bdbab1e2fa4f.tar.bz2 scala-ac17c71b2357cf37386dec9644b5bdbab1e2fa4f.zip |
vector concat stubs
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/collection/immutable/Vector.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/library/scala/collection/immutable/Vector.scala b/src/library/scala/collection/immutable/Vector.scala index 6aecaf5a3f..92a6160213 100644 --- a/src/library/scala/collection/immutable/Vector.scala +++ b/src/library/scala/collection/immutable/Vector.scala @@ -193,6 +193,13 @@ override def companion: GenericCompanion[Vector] = Vector override /*IterableLike*/ def splitAt(n: Int): (Vector[A], Vector[A]) = (take(n), drop(n)) + // concat (stub) + + override def ++[B >: A, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Vector[A], B, That]): That = { + super.++(that) + } + + // semi-private api @@ -684,6 +691,9 @@ final class VectorBuilder[A]() extends Builder[A,Vector[A]] with VectorPointer[A this } + override def ++=(xs: TraversableOnce[A]): this.type = + super.++=(xs) + def result: Vector[A] = { val size = blockIndex + lo if (size == 0) |