summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-07-29 23:58:29 +0000
committerPaul Phillips <paulp@improving.org>2011-07-29 23:58:29 +0000
commitaf412cd72e6e35e7c76ee24e9fa65b73293f0082 (patch)
tree05f3283e974b29c268a6f442eb1e767111cc58fd /src
parentb5865cd83f2e8871c746acd1e7a907058b417989 (diff)
downloadscala-af412cd72e6e35e7c76ee24e9fa65b73293f0082.tar.gz
scala-af412cd72e6e35e7c76ee24e9fa65b73293f0082.tar.bz2
scala-af412cd72e6e35e7c76ee24e9fa65b73293f0082.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/collection/immutable/Vector.scala16
1 files changed, 8 insertions, 8 deletions
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