Scala Standard Library 2.13.15 - scala.collection.immutable.Vector (original) (raw)

sealed abstract class Vector[+A] extends AbstractSeq[A] with IndexedSeq[A] with IndexedSeqOps[A, Vector, Vector[A]] with StrictOptimizedSeqOps[A, Vector, Vector[A]] with IterableFactoryDefaults[A, Vector] with DefaultSerializable

Ordering

  1. Alphabetic
  2. By Inheritance

Inherited

  1. Vector
  2. DefaultSerializable
  3. Serializable
  4. StrictOptimizedSeqOps
  5. StrictOptimizedSeqOps
  6. StrictOptimizedIterableOps
  7. IndexedSeq
  8. IndexedSeqOps
  9. IndexedSeq
  10. IndexedSeqOps
  11. AbstractSeq
  12. Seq
  13. SeqOps
  14. Iterable
  15. AbstractSeq
  16. Seq
  17. Equals
  18. SeqOps
  19. PartialFunction
  20. Function1
  21. AbstractIterable
  22. Iterable
  23. IterableFactoryDefaults
  24. IterableOps
  25. IterableOnceOps
  26. IterableOnce
  27. AnyRef
  28. Any

Implicitly

  1. by UnliftOps

  2. by iterableOnceExtensionMethods

  3. by any2stringadd

  4. by StringFormat

  5. by Ensuring

  6. by ArrowAssoc

  7. Hide All

  8. Show All

Visibility

  1. Public
  2. Protected

Abstract Value Members

  1. abstract def apply(i: Int): A
  2. abstract def slice0(lo: Int, hi: Int): Vector[A]
  3. abstract def vectorSlice(idx: Int): Array[_ <: AnyRef]
  4. abstract def vectorSliceCount: Int
  5. abstract def vectorSlicePrefixLength(idx: Int): Int

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
  2. final def ##: Int
  3. def +(other: String): String
  4. final def ++[B >: A](suffix: IterableOnce[B]): Vector[B]
  5. final def ++:[B >: A](prefix: IterableOnce[B]): Vector[B]
  6. final def +:[B >: A](elem: B): Vector[B]
  7. def ->[B](y: B): (Vector[A], B)
  8. final def :+[B >: A](elem: B): Vector[B]
  9. final def :++[B >: A](suffix: IterableOnce[B]): Vector[B]
  10. final def ==(arg0: Any): Boolean
  11. final def addString(b: mutable.StringBuilder): b.type
  12. final def addString(b: mutable.StringBuilder, sep: String): b.type
  13. def addString(b: mutable.StringBuilder, start: String, sep: String, end: String): b.type
  14. def andThen[C](k: PartialFunction[A, C]): PartialFunction[Int, C]
  15. def andThen[C](k: (A) => C): PartialFunction[Int, C]
  16. def appended[B >: A](elem: B): Vector[B]
  17. final def appendedAll[B >: A](suffix: IterableOnce[B]): Vector[B]
  18. def appendedAll0[B >: A](suffix: IterableOnce[B], k: Int): Vector[B]
  19. def applyOrElse[A1 <: Int, B1 >: A](x: A1, default: (A1) => B1): B1
  20. def applyPreferredMaxLength: Int
  21. final def asInstanceOf[T0]: T0
  22. def canEqual(that: Any): Boolean
  23. def className: String
  24. def clone(): AnyRef
  25. final def coll: Vector.this.type
  26. def collect[B](pf: PartialFunction[A, B]): Vector[B]
  27. def collectFirst[B](pf: PartialFunction[A, B]): Option[B]
  28. def combinations(n: Int): Iterator[Vector[A]]
  29. def compose[R](k: PartialFunction[R, Int]): PartialFunction[R, A]
  30. def compose[A](g: (A) => Int): (A) => A
  31. final def concat[B >: A](suffix: IterableOnce[B]): Vector[B]
  32. def contains[A1 >: A](elem: A1): Boolean
  33. def containsSlice[B >: A](that: collection.Seq[B]): Boolean
  34. def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Int
  35. def copyToArray[B >: A](xs: Array[B], start: Int): Int
  36. def copyToArray[B >: A](xs: Array[B]): Int
  37. def corresponds[B](that: collection.Seq[B])(p: (A, B) => Boolean): Boolean
  38. def corresponds[B](that: IterableOnce[B])(p: (A, B) => Boolean): Boolean
  39. def count(p: (A) => Boolean): Int
  40. def diff[B >: A](that: collection.Seq[B]): Vector[A]
  41. def distinct: Vector[A]
  42. def distinctBy[B](f: (A) => B): Vector[A]
  43. final def drop(n: Int): Vector[A]
  44. final def dropRight(n: Int): Vector[A]
  45. def dropWhile(p: (A) => Boolean): Vector[A]
  46. def elementWise: ElementWiseExtractor[Int, A]
  47. def empty: Vector[A]
  48. def endsWith[B >: A](that: collection.Iterable[B]): Boolean
  49. def ensuring(cond: (Vector[A]) => Boolean, msg: => Any): Vector[A]
  50. def ensuring(cond: (Vector[A]) => Boolean): Vector[A]
  51. def ensuring(cond: Boolean, msg: => Any): Vector[A]
  52. def ensuring(cond: Boolean): Vector[A]
  53. final def eq(arg0: AnyRef): Boolean
  54. def equals(o: Any): Boolean
  55. def exists(p: (A) => Boolean): Boolean
  56. def filter(pred: (A) => Boolean): Vector[A]
  57. final def filterImpl(pred: (A) => Boolean, isFlipped: Boolean): Vector[A]
  58. def filterNot(pred: (A) => Boolean): Vector[A]
  59. def finalize(): Unit
  60. def find(p: (A) => Boolean): Option[A]
  61. def findLast(p: (A) => Boolean): Option[A]
  62. def flatMap[B](f: (A) => IterableOnce[B]): Vector[B]
  63. def flatten[B](implicit toIterableOnce: (A) => IterableOnce[B]): Vector[B]
  64. def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
  65. def foldLeft[B](z: B)(op: (B, A) => B): B
  66. def foldRight[B](z: B)(op: (A, B) => B): B
  67. def forall(p: (A) => Boolean): Boolean
  68. final def foreach[U](f: (A) => U): Unit
  69. def fromSpecific(coll: IterableOnce[A]): Vector[A]
  70. final def getClass(): Class[_ <: AnyRef]
  71. def groupBy[K](f: (A) => K): Map[K, Vector[A]]
  72. def groupMap[K, B](key: (A) => K)(f: (A) => B): Map[K, Vector[B]]
  73. def groupMapReduce[K, B](key: (A) => K)(f: (A) => B)(reduce: (B, B) => B): Map[K, B]
  74. def grouped(size: Int): Iterator[Vector[A]]
  75. def hashCode(): Int
  76. final def head: A
  77. def headOption: Option[A]
  78. def indexOf[B >: A](elem: B): Int
  79. def indexOf[B >: A](elem: B, from: Int): Int
  80. def indexOfSlice[B >: A](that: collection.Seq[B]): Int
  81. def indexOfSlice[B >: A](that: collection.Seq[B], from: Int): Int
  82. def indexWhere(p: (A) => Boolean): Int
  83. def indexWhere(p: (A) => Boolean, from: Int): Int
  84. def indices: Range
  85. def init: Vector[A]
  86. def inits: Iterator[Vector[A]]
  87. def intersect[B >: A](that: collection.Seq[B]): Vector[A]
  88. def ioob(index: Int): IndexOutOfBoundsException
  89. def isDefinedAt(idx: Int): Boolean
  90. def isEmpty: Boolean
  91. final def isInstanceOf[T0]: Boolean
  92. def isTraversableAgain: Boolean
  93. def iterableFactory: SeqFactory[Vector]
  94. final def iterator: Iterator[A]
  95. def knownSize: Int
  96. final def last: A
  97. def lastIndexOf[B >: A](elem: B, end: Int = length - 1): Int
  98. def lastIndexOfSlice[B >: A](that: collection.Seq[B]): Int
  99. def lastIndexOfSlice[B >: A](that: collection.Seq[B], end: Int): Int
  100. def lastIndexWhere(p: (A) => Boolean): Int
  101. def lastIndexWhere(p: (A) => Boolean, end: Int): Int
  102. def lastOption: Option[A]
  103. def lazyZip[B](that: collection.Iterable[B]): LazyZip2[A, B, Vector.this.type]
  104. final def length: Int
  105. final def lengthCompare(that: collection.Iterable[_]): Int
  106. final def lengthCompare(len: Int): Int
  107. final def lengthIs: SizeCompareOps
  108. def lift: (Int) => Option[A]
  109. def map[B](f: (A) => B): Vector[B]
  110. def max[B >: A](implicit ord: math.Ordering[B]): A
  111. def maxBy[B](f: (A) => B)(implicit ord: math.Ordering[B]): A
  112. def maxByOption[B](f: (A) => B)(implicit ord: math.Ordering[B]): Option[A]
  113. def maxOption[B >: A](implicit ord: math.Ordering[B]): Option[A]
  114. def min[B >: A](implicit ord: math.Ordering[B]): A
  115. def minBy[B](f: (A) => B)(implicit ord: math.Ordering[B]): A
  116. def minByOption[B](f: (A) => B)(implicit ord: math.Ordering[B]): Option[A]
  117. def minOption[B >: A](implicit ord: math.Ordering[B]): Option[A]
  118. final def mkString: String
  119. final def mkString(sep: String): String
  120. final def mkString(start: String, sep: String, end: String): String
  121. final def ne(arg0: AnyRef): Boolean
  122. def newSpecificBuilder: Builder[A, Vector[A]]
  123. def nonEmpty: Boolean
  124. final def notify(): Unit
  125. final def notifyAll(): Unit
  126. def occCounts[B](sq: collection.Seq[B]): mutable.Map[B, Int]
  127. def orElse[A1 <: Int, B1 >: A](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
  128. def padTo[B >: A](len: Int, elem: B): Vector[B]
  129. def partition(p: (A) => Boolean): (Vector[A], Vector[A])
  130. def partitionMap[A1, A2](f: (A) => Either[A1, A2]): (Vector[A1], Vector[A2])
  131. def patch[B >: A](from: Int, other: IterableOnce[B], replaced: Int): Vector[B]
  132. def permutations: Iterator[Vector[A]]
  133. def prepended[B >: A](elem: B): Vector[B]
  134. def prependedAll[B >: A](prefix: IterableOnce[B]): Vector[B]
  135. def prependedAll0[B >: A](prefix: IterableOnce[B], k: Int): Vector[B]
  136. def product[B >: A](implicit num: math.Numeric[B]): B
  137. def reduce[B >: A](op: (B, B) => B): B
  138. def reduceLeft[B >: A](op: (B, A) => B): B
  139. def reduceLeftOption[B >: A](op: (B, A) => B): Option[B]
  140. def reduceOption[B >: A](op: (B, B) => B): Option[B]
  141. def reduceRight[B >: A](op: (A, B) => B): B
  142. def reduceRightOption[B >: A](op: (A, B) => B): Option[B]
  143. def reverse: Vector[A]
  144. def reverseIterator: Iterator[A]
  145. def reversed: collection.Iterable[A]
  146. def runWith[U](action: (A) => U): (Int) => Boolean
  147. def sameElements[B >: A](o: IterableOnce[B]): Boolean
  148. def scan[B >: A](z: B)(op: (B, B) => B): Vector[B]
  149. def scanLeft[B](z: B)(op: (B, A) => B): Vector[B]
  150. def scanRight[B](z: B)(op: (A, B) => B): Vector[B]
  151. def search[B >: A](elem: B, from: Int, to: Int)(implicit ord: math.Ordering[B]): SearchResult
  152. def search[B >: A](elem: B)(implicit ord: math.Ordering[B]): SearchResult
  153. def segmentLength(p: (A) => Boolean, from: Int): Int
  154. final def segmentLength(p: (A) => Boolean): Int
  155. final def size: Int
  156. final def sizeCompare(that: collection.Iterable[_]): Int
  157. final def sizeCompare(otherSize: Int): Int
  158. final def sizeIs: SizeCompareOps
  159. def slice(from: Int, until: Int): Vector[A]
  160. def sliding(size: Int, step: Int): Iterator[Vector[A]]
  161. def sliding(size: Int): Iterator[Vector[A]]
  162. def sortBy[B](f: (A) => B)(implicit ord: Ordering[B]): Vector[A]
  163. def sortWith(lt: (A, A) => Boolean): Vector[A]
  164. def sorted[B >: A](implicit ord: Ordering[B]): Vector[A]
  165. def span(p: (A) => Boolean): (Vector[A], Vector[A])
  166. def splitAt(n: Int): (Vector[A], Vector[A])
  167. def startsWith[B >: A](that: IterableOnce[B], offset: Int = 0): Boolean
  168. def stepper[S <: Stepper[_]](implicit shape: StepperShape[A, S]): S with EfficientSplit
  169. final def strictOptimizedCollect[B, C2](b: Builder[B, C2], pf: PartialFunction[A, B]): C2
  170. final def strictOptimizedConcat[B >: A, C2](that: IterableOnce[B], b: Builder[B, C2]): C2
  171. final def strictOptimizedFlatMap[B, C2](b: Builder[B, C2], f: (A) => IterableOnce[B]): C2
  172. final def strictOptimizedFlatten[B, C2](b: Builder[B, C2])(implicit toIterableOnce: (A) => IterableOnce[B]): C2
  173. final def strictOptimizedMap[B, C2](b: Builder[B, C2], f: (A) => B): C2
  174. final def strictOptimizedZip[B, C2](that: IterableOnce[B], b: Builder[(A, B), C2]): C2
  175. def stringPrefix: String
  176. def sum[B >: A](implicit num: math.Numeric[B]): B
  177. final def synchronized[T0](arg0: => T0): T0
  178. def tail: Vector[A]
  179. def tails: Iterator[Vector[A]]
  180. final def take(n: Int): Vector[A]
  181. final def takeRight(n: Int): Vector[A]
  182. def takeWhile(p: (A) => Boolean): Vector[A]
  183. def tapEach[U](f: (A) => U): Vector[A]
  184. def to[C1](factory: Factory[A, C1]): C1
  185. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
  186. final def toBuffer[B >: A]: Buffer[B]
  187. final def toIndexedSeq: IndexedSeq[A]
  188. def toList: List[A]
  189. def toMap[K, V](implicit ev: <:<[A, (K, V)]): Map[K, V]
  190. final def toSeq: Vector.this.type
  191. def toSet[B >: A]: Set[B]
  192. def toString(): String
  193. def toVector: Vector[A]
  194. def transpose[B](implicit asIterable: (A) => collection.Iterable[B]): Vector[Vector[B]]
  195. def unapply(a: Int): Option[A]
  196. def unlift: PartialFunction[Int, B]
  197. def unzip[A1, A2](implicit asPair: (A) => (A1, A2)): (Vector[A1], Vector[A2])
  198. def unzip3[A1, A2, A3](implicit asTriple: (A) => (A1, A2, A3)): (Vector[A1], Vector[A2], Vector[A3])
  199. def updated[B >: A](index: Int, elem: B): Vector[B]
  200. def view: IndexedSeqView[A]
  201. final def wait(): Unit
  202. final def wait(arg0: Long, arg1: Int): Unit
  203. final def wait(arg0: Long): Unit
  204. def withFilter(p: (A) => Boolean): WithFilter[A, [_]Vector[_]]
  205. def writeReplace(): AnyRef
  206. def zip[B](that: IterableOnce[B]): Vector[(A, B)]
  207. def zipAll[A1 >: A, B](that: collection.Iterable[B], thisElem: A1, thatElem: B): Vector[(A1, B)]
  208. def zipWithIndex: Vector[(A, Int)]

Deprecated Value Members

  1. def /:[B](z: B)(op: (B, A) => B): B
  2. final def /:[B](z: B)(op: (B, A) => B): B
  3. def :\[B](z: B)(op: (A, B) => B): B
  4. final def :\[B](z: B)(op: (A, B) => B): B
  5. def aggregate[B](z: => B)(seqop: (B, A) => B, combop: (B, B) => B): B
  6. def collectFirst[B](f: PartialFunction[A, B]): Option[B]
  7. def companion: IterableFactory[[_]Vector[_]]
  8. def copyToBuffer(dest: Buffer[A]): Unit
  9. final def copyToBuffer[B >: A](dest: Buffer[B]): Unit
  10. def count(f: (A) => Boolean): Int
  11. def exists(f: (A) => Boolean): Boolean
  12. def filter(f: (A) => Boolean): Iterator[A]
  13. def find(p: (A) => Boolean): Option[A]
  14. def flatMap[B](f: (A) => IterableOnce[B]): IterableOnce[B]
  15. def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
  16. def foldLeft[B](z: B)(op: (B, A) => B): B
  17. def foldRight[B](z: B)(op: (A, B) => B): B
  18. def forall(f: (A) => Boolean): Boolean
  19. def foreach[U](f: (A) => U): Unit
  20. def formatted(fmtstr: String): String
  21. def hasDefiniteSize: Boolean
  22. def isEmpty: Boolean
  23. def map[B](f: (A) => B): IterableOnce[B]
  24. def max(implicit ord: math.Ordering[A]): A
  25. def maxBy[B](f: (A) => B)(implicit cmp: math.Ordering[B]): A
  26. def min(implicit ord: math.Ordering[A]): A
  27. def minBy[B](f: (A) => B)(implicit cmp: math.Ordering[B]): A
  28. def mkString: String
  29. def mkString(sep: String): String
  30. def mkString(start: String, sep: String, end: String): String
  31. def nonEmpty: Boolean
  32. final def prefixLength(p: (A) => Boolean): Int
  33. def product(implicit num: math.Numeric[A]): A
  34. def reduce(f: (A, A) => A): A
  35. def reduceLeft(f: (A, A) => A): A
  36. def reduceLeftOption(f: (A, A) => A): Option[A]
  37. def reduceOption(f: (A, A) => A): Option[A]
  38. def reduceRight(f: (A, A) => A): A
  39. def reduceRightOption(f: (A, A) => A): Option[A]
  40. final def repr: Vector[A]
  41. def reverseMap[B](f: (A) => B): Vector[B]
  42. def sameElements[B >: A](that: IterableOnce[B]): Boolean
  43. def seq: Vector.this.type
  44. def size: Int
  45. def sum(implicit num: math.Numeric[A]): A
  46. def to[C1](factory: Factory[A, C1]): C1
  47. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
  48. def toBuffer[B >: A]: Buffer[B]
  49. def toIndexedSeq: collection.IndexedSeq[A]
  50. final def toIterable: collection.Iterable[A]
  51. final def toIterable: Vector.this.type
  52. def toIterator: Iterator[A]
  53. final def toIterator: Iterator[A]
  54. def toList: List[A]
  55. def toMap[K, V](implicit ev: <:<[A, (K, V)]): Map[K, V]
  56. def toSeq: Seq[A]
  57. def toSet[B >: A]: Set[B]
  58. def toStream: Stream[A]
  59. final def toStream: Stream[A]
  60. final def toTraversable: collection.Traversable[A]
  61. final def toTraversable: collection.Traversable[A]
  62. def toVector: Vector[A]
  63. final def union[B >: A](that: collection.Seq[B]): Vector[B]
  64. def view(from: Int, until: Int): IndexedSeqView[A]
  65. def withFilter(f: (A) => Boolean): Iterator[A]
  66. def →[B](y: B): (Vector[A], B)

Inherited from DefaultSerializable

Inherited from java.io.Serializable

Inherited from StrictOptimizedSeqOps[A, Vector, Vector[A]]

Inherited from collection.StrictOptimizedSeqOps[A, Vector, Vector[A]]

Inherited from StrictOptimizedIterableOps[A, Vector, Vector[A]]

Inherited from IndexedSeq[A]

Inherited from IndexedSeqOps[A, [_]Vector[_], Vector[A]]

Inherited from collection.IndexedSeq[A]

Inherited from collection.IndexedSeqOps[A, [_]Vector[_], Vector[A]]

Inherited from AbstractSeq[A]

Inherited from Seq[A]

Inherited from SeqOps[A, [_]Vector[_], Vector[A]]

Inherited from Iterable[A]

Inherited from collection.AbstractSeq[A]

Inherited from collection.Seq[A]

Inherited from Equals

Inherited from collection.SeqOps[A, [_]Vector[_], Vector[A]]

Inherited from PartialFunction[Int, A]

Inherited from (Int) => A

Inherited from AbstractIterable[A]

Inherited from collection.Iterable[A]

Inherited from IterableFactoryDefaults[A, [x]Vector[x]]

Inherited from IterableOps[A, [_]Vector[_], Vector[A]]

Inherited from IterableOnceOps[A, [_]Vector[_], Vector[A]]

Inherited from IterableOnce[A]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion UnliftOps fromVector[A] to UnliftOps[Int, B]

Inherited by implicit conversion iterableOnceExtensionMethods fromVector[A] to IterableOnceExtensionMethods[A]

Inherited by implicit conversion any2stringadd fromVector[A] to any2stringadd[Vector[A]]

Inherited by implicit conversion StringFormat fromVector[A] to StringFormat[Vector[A]]

Inherited by implicit conversion Ensuring fromVector[A] to Ensuring[Vector[A]]

Inherited by implicit conversion ArrowAssoc fromVector[A] to ArrowAssoc[Vector[A]]

Ungrouped