From af412cd72e6e35e7c76ee24e9fa65b73293f0082 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 29 Jul 2011 23:58:29 +0000 Subject: Move vector descrition from the obejct to the c... Move vector descrition from the obejct to the class, where it actually makes sense. Preserve previously existing attribute definitions. Contributed by Daniel C. Sobral --- src/library/scala/collection/immutable/Vector.scala | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/library/scala/collection/immutable/Vector.scala b/src/library/scala/collection/immutable/Vector.scala index c7b4614c21..669c37174f 100644 --- a/src/library/scala/collection/immutable/Vector.scala +++ b/src/library/scala/collection/immutable/Vector.scala @@ -15,12 +15,7 @@ import scala.collection.generic._ import scala.collection.mutable.Builder import scala.collection.parallel.immutable.ParVector -/** Vector is a general-purpose, immutable data structure. It provides random access and updates - * in effectively constant time, as well as very fast append and prepend. Because vectors strike - * a good balance between fast random selections and fast random functional updates, they are - * currently the default implementation of immutable indexed sequences. It is backed by a little - * endian bit-mapped vector trie with a branching factor of 32. Locality is very good, but not - * contiguous, which is good for very large sequences. +/** Companion object to the Vector class */ object Vector extends SeqFactory[Vector] { @inline implicit def canBuildFrom[A]: CanBuildFrom[Coll, A, Vector[A]] = @@ -33,9 +28,14 @@ object Vector extends SeqFactory[Vector] { // in principle, most members should be private. however, access privileges must // be carefully chosen to not prevent method inlining -/** A class implementing an immutable indexed sequence. +/** Vector is a general-purpose, immutable data structure. It provides random access and updates + * in effectively constant time, as well as very fast append and prepend. Because vectors strike + * a good balance between fast random selections and fast random functional updates, they are + * currently the default implementation of immutable indexed sequences. It is backed by a little + * endian bit-mapped vector trie with a branching factor of 32. Locality is very good, but not + * contiguous, which is good for very large sequences. * - * @tparam A the element type + * @tparam A the element type * * @define Coll Vector * @define coll vector -- cgit v1.2.3