Scala Standard Library 2.13.1 - 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): mutable.StringBuilder
  12. final def addString(b: mutable.StringBuilder, sep: String): mutable.StringBuilder
  13. def addString(b: mutable.StringBuilder, start: String, sep: String, end: String): mutable.StringBuilder
  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](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 formatted(fmtstr: String): String
  67. def fromSpecific(coll: IterableOnce[A]): Seq[A]
  68. final def getClass(): Class[_ <: AnyRef]
  69. def groupBy[K](f: (A) => K): Map[K, Seq[A]]
  70. def groupMap[K, B](key: (A) => K)(f: (A) => B): Map[K, Seq[B]]
  71. def groupMapReduce[K, B](key: (A) => K)(f: (A) => B)(reduce: (B, B) => B): Map[K, B]
  72. def grouped(size: Int): Iterator[Seq[A]]
  73. def hashCode(): Int
  74. def head: A
  75. def headOption: Option[A]
  76. def indexOf[B >: A](elem: B): Int
  77. def indexOf[B >: A](elem: B, from: Int): Int
  78. def indexOfSlice[B >: A](that: collection.Seq[B]): Int
  79. def indexOfSlice[B >: A](that: collection.Seq[B], from: Int): Int
  80. def indexWhere(p: (A) => Boolean): Int
  81. def indexWhere(p: (A) => Boolean, from: Int): Int
  82. def indices: Range
  83. def init: Seq[A]
  84. def inits: Iterator[Seq[A]]
  85. def intersect[B >: A](that: collection.Seq[B]): Seq[A]
  86. def isDefinedAt(idx: Int): Boolean
  87. def isEmpty: Boolean
  88. final def isInstanceOf[T0]: Boolean
  89. def isTraversableAgain: Boolean
  90. def iterableFactory: SeqFactory[Seq]
  91. def knownSize: Int
  92. def last: A
  93. def lastIndexOf[B >: A](elem: B, end: Int = length - 1): Int
  94. def lastIndexOfSlice[B >: A](that: collection.Seq[B]): Int
  95. def lastIndexOfSlice[B >: A](that: collection.Seq[B], end: Int): Int
  96. def lastIndexWhere(p: (A) => Boolean): Int
  97. def lastIndexWhere(p: (A) => Boolean, end: Int): Int
  98. def lastOption: Option[A]
  99. def lazyZip[B](that: collection.Iterable[B]): LazyZip2[A, B, Seq.this.type]
  100. def lengthCompare(that: collection.Iterable[_]): Int
  101. def lengthCompare(len: Int): Int
  102. final def lengthIs: SizeCompareOps
  103. def lift: (Int) => Option[A]
  104. def map[B](f: (A) => B): Seq[B]
  105. def max[B >: A](implicit ord: math.Ordering[B]): A
  106. def maxBy[B](f: (A) => B)(implicit cmp: math.Ordering[B]): A
  107. def maxByOption[B](f: (A) => B)(implicit cmp: math.Ordering[B]): Option[A]
  108. def maxOption[B >: A](implicit ord: math.Ordering[B]): Option[A]
  109. def min[B >: A](implicit ord: math.Ordering[B]): A
  110. def minBy[B](f: (A) => B)(implicit cmp: math.Ordering[B]): A
  111. def minByOption[B](f: (A) => B)(implicit cmp: math.Ordering[B]): Option[A]
  112. def minOption[B >: A](implicit ord: math.Ordering[B]): Option[A]
  113. final def mkString: String
  114. final def mkString(sep: String): String
  115. final def mkString(start: String, sep: String, end: String): String
  116. final def ne(arg0: AnyRef): Boolean
  117. def newSpecificBuilder: Builder[A, Seq[A]]
  118. def nonEmpty: Boolean
  119. final def notify(): Unit
  120. final def notifyAll(): Unit
  121. def occCounts[B](sq: collection.Seq[B]): mutable.Map[B, Int]
  122. def orElse[A1 <: Int, B1 >: A](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
  123. def padTo[B >: A](len: Int, elem: B): Seq[B]
  124. def partition(p: (A) => Boolean): (Seq[A], Seq[A])
  125. def partitionMap[A1, A2](f: (A) => Either[A1, A2]): (Seq[A1], Seq[A2])
  126. def patch[B >: A](from: Int, other: IterableOnce[B], replaced: Int): Seq[B]
  127. def permutations: Iterator[Seq[A]]
  128. def prepended[B >: A](elem: B): Seq[B]
  129. def prependedAll[B >: A](prefix: IterableOnce[B]): Seq[B]
  130. def product[B >: A](implicit num: math.Numeric[B]): B
  131. def reduce[B >: A](op: (B, B) => B): B
  132. def reduceLeft[B >: A](op: (B, A) => B): B
  133. def reduceLeftOption[B >: A](op: (B, A) => B): Option[B]
  134. def reduceOption[B >: A](op: (B, B) => B): Option[B]
  135. def reduceRight[B >: A](op: (A, B) => B): B
  136. def reduceRightOption[B >: A](op: (A, B) => B): Option[B]
  137. def reverse: Seq[A]
  138. def reverseIterator: Iterator[A]
  139. def reversed: collection.Iterable[A]
  140. def runWith[U](action: (A) => U): (Int) => Boolean
  141. def sameElements[B >: A](that: IterableOnce[B]): Boolean
  142. def scan[B >: A](z: B)(op: (B, B) => B): Seq[B]
  143. def scanLeft[B](z: B)(op: (B, A) => B): Seq[B]
  144. def scanRight[B](z: B)(op: (A, B) => B): Seq[B]
  145. def search[B >: A](elem: B, from: Int, to: Int)(implicit ord: Ordering[B]): SearchResult
  146. def search[B >: A](elem: B)(implicit ord: Ordering[B]): SearchResult
  147. def segmentLength(p: (A) => Boolean, from: Int): Int
  148. final def segmentLength(p: (A) => Boolean): Int
  149. final def size: Int
  150. final def sizeCompare(that: collection.Iterable[_]): Int
  151. final def sizeCompare(otherSize: Int): Int
  152. final def sizeIs: SizeCompareOps
  153. def slice(from: Int, until: Int): Seq[A]
  154. def sliding(size: Int, step: Int): Iterator[Seq[A]]
  155. def sliding(size: Int): Iterator[Seq[A]]
  156. def sortBy[B](f: (A) => B)(implicit ord: Ordering[B]): Seq[A]
  157. def sortWith(lt: (A, A) => Boolean): Seq[A]
  158. def sorted[B >: A](implicit ord: Ordering[B]): Seq[A]
  159. def span(p: (A) => Boolean): (Seq[A], Seq[A])
  160. def splitAt(n: Int): (Seq[A], Seq[A])
  161. def startsWith[B >: A](that: IterableOnce[B], offset: Int = 0): Boolean
  162. def stepper[S <: Stepper[_]](implicit shape: StepperShape[A, S]): S
  163. def stringPrefix: String
  164. def sum[B >: A](implicit num: math.Numeric[B]): B
  165. final def synchronized[T0](arg0: => T0): T0
  166. def tail: Seq[A]
  167. def tails: Iterator[Seq[A]]
  168. def take(n: Int): Seq[A]
  169. def takeRight(n: Int): Seq[A]
  170. def takeWhile(p: (A) => Boolean): Seq[A]
  171. def tapEach[U](f: (A) => U): Seq[A]
  172. def to[C1](factory: Factory[A, C1]): C1
  173. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
  174. final def toBuffer[B >: A]: Buffer[B]
  175. def toIndexedSeq: IndexedSeq[A]
  176. final def toIterable: Seq.this.type
  177. def toList: List[A]
  178. def toMap[K, V](implicit ev: <:<[A, (K, V)]): Map[K, V]
  179. final def toSeq: Seq.this.type
  180. def toSet[B >: A]: Set[B]
  181. def toString(): String
  182. def toVector: Vector[A]
  183. def transpose[B](implicit asIterable: (A) => collection.Iterable[B]): Seq[Seq[B]]
  184. def unapply(a: Int): Option[A]
  185. def unlift: PartialFunction[Int, B]
  186. def unzip[A1, A2](implicit asPair: (A) => (A1, A2)): (Seq[A1], Seq[A2])
  187. def unzip3[A1, A2, A3](implicit asTriple: (A) => (A1, A2, A3)): (Seq[A1], Seq[A2], Seq[A3])
  188. def updated[B >: A](index: Int, elem: B): Seq[B]
  189. def view: SeqView[A]
  190. final def wait(): Unit
  191. final def wait(arg0: Long, arg1: Int): Unit
  192. final def wait(arg0: Long): Unit
  193. def withFilter(p: (A) => Boolean): WithFilter[A, [_]Seq[_]]
  194. def zip[B](that: IterableOnce[B]): Seq[(A, B)]
  195. def zipAll[A1 >: A, B](that: collection.Iterable[B], thisElem: A1, thatElem: B): Seq[(A1, B)]
  196. 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 hasDefiniteSize: Boolean
  21. def isEmpty: Boolean
  22. def map[B](f: (A) => B): IterableOnce[B]
  23. def max(implicit ord: math.Ordering[A]): A
  24. def maxBy[B](f: (A) => B)(implicit cmp: math.Ordering[B]): A
  25. def min(implicit ord: math.Ordering[A]): A
  26. def minBy[B](f: (A) => B)(implicit cmp: math.Ordering[B]): A
  27. def mkString: String
  28. def mkString(sep: String): String
  29. def mkString(start: String, sep: String, end: String): String
  30. def nonEmpty: Boolean
  31. final def prefixLength(p: (A) => Boolean): Int
  32. def product(implicit num: math.Numeric[A]): A
  33. def reduce(f: (A, A) => A): A
  34. def reduceLeft(f: (A, A) => A): A
  35. def reduceLeftOption(f: (A, A) => A): Option[A]
  36. def reduceOption(f: (A, A) => A): Option[A]
  37. def reduceRight(f: (A, A) => A): A
  38. def reduceRightOption(f: (A, A) => A): Option[A]
  39. final def repr: Seq[A]
  40. def reverseMap[B](f: (A) => B): Seq[B]
  41. def sameElements[B >: A](that: IterableOnce[B]): Boolean
  42. def seq: Seq.this.type
  43. def size: Int
  44. def sum(implicit num: math.Numeric[A]): A
  45. def to[C1](factory: Factory[A, C1]): C1
  46. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
  47. def toBuffer[B >: A]: Buffer[B]
  48. def toIndexedSeq: collection.IndexedSeq[A]
  49. final def toIterable: collection.Iterable[A]
  50. def toIterator: Iterator[A]
  51. final def toIterator: Iterator[A]
  52. def toList: List[A]
  53. def toMap[K, V](implicit ev: <:<[A, (K, V)]): Map[K, V]
  54. def toSeq: Seq[A]
  55. def toSet[B >: A]: Set[B]
  56. def toStream: Stream[A]
  57. final def toStream: Stream[A]
  58. final def toTraversable: collection.Traversable[A]
  59. final def toTraversable: collection.Traversable[A]
  60. def toVector: Vector[A]
  61. final def union[B >: A](that: collection.Seq[B]): Seq[B]
  62. def view(from: Int, until: Int): View[A]
  63. def withFilter(f: (A) => Boolean): Iterator[A]
  64. 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