scala.collection

trait Vector

[source: scala/collection/Vector.scala]

trait Vector[+A]
extends Sequence[A] with TraversableClass[A, Vector] with VectorTemplate[A, Vector[A]]
Sequences that support O(1) element access and O(1) length computation. This class does not add any methods to Sequence but overrides several methods with optimized implementations.
Author
Sean McDirmid
Martin Odersky
Version
2.8
Direct Known Subclasses:
VectorViewTemplate, PagedSeq, Vector, Vector

Method Summary
override def companion : Companion[Vector]
The factory companion object that builds instances of class CC
Methods inherited from VectorTemplate
iterator, isEmpty, foreach, forall, exists, find, foldLeft, foldRight, reduceLeft, reduceRight, zip, zipWithIndex, slice, head, tail, last, init, take, drop, takeRight, dropRight, splitAt, takeWhile, dropWhile, span, sameElements, copyToArray, lengthCompare, segmentLength, indexWhere, lastIndexWhere, reverse, reverseIterator, startsWith, endsWith, equals, view, view
Methods inherited from SequenceTemplate
length (abstract), apply (abstract), size, isDefinedAt, zipAll, prefixLength, indexWhere, findIndexOf, indexOf, indexOf, lastIndexOf, lastIndexOf, lastIndexWhere, reversedElements, startsWith, indexOfSeq, indexOfSeq, lastIndexOfSeq, lastIndexOfSeq, contains, union, diff, intersect, removeDuplicates, patch, padTo, toSequence, indices, toString, sortWith, findLastIndexOf, slice, equalsWith, containsSlice, projection
Methods inherited from IterableTemplate
elements, toIterable, toStream, first, firstOption, toSeq
Methods inherited from TraversableClass
newBuilder, genericBuilder, unzip, flatten, transpose
Methods inherited from TraversableTemplate
thisCollection, nonEmpty, hasDefiniteSize, ++, ++, map, flatMap, filter, filterMap, filterNot, remove, partition, groupBy, count, /:, :\, reduceLeftOption, reduceRightOption, headOption, lastOption, copyToBuffer, copyToArray, toArray, toList, toSet, mkString, mkString, mkString, addString, addString, addString, stringPrefix
Methods inherited from PartialFunction
orElse, andThen
Methods inherited from Function1
compose
Methods inherited from AnyRef
getClass, hashCode, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
override def companion : Companion[Vector]
The factory companion object that builds instances of class CC
Overrides
Sequence.companion, TraversableClass.companion