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

trait Seq[+A] extends Iterable[A] with collection.Seq[A] with SeqOps[A, Seq, Seq[A]] with IterableFactoryDefaults[A, Seq]

Ordering

  1. Alphabetic
  2. By Inheritance

Inherited

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

Inherited from SeqOps[A, Seq, Seq[A]]

Inherited from collection.Seq[A]

Inherited from Equals

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

Inherited from PartialFunction[Int, A]

Inherited from (Int) => A

Inherited from Iterable[A]

Inherited from collection.Iterable[A]

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

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

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

Inherited from IterableOnce[A]

Inherited from AnyRef

Inherited from Any

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

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

Inherited by implicit conversion any2stringadd fromSeq[A] to any2stringadd[Seq[A]]

Inherited by implicit conversion StringFormat fromSeq[A] to StringFormat[Seq[A]]

Inherited by implicit conversion Ensuring fromSeq[A] to Ensuring[Seq[A]]

Inherited by implicit conversion ArrowAssoc fromSeq[A] to ArrowAssoc[Seq[A]]

Ungrouped