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

trait SeqView[+A] extends SeqOps[A, View, View[A]] with View[A]

Ordering

  1. Alphabetic
  2. By Inheritance

Inherited

  1. SeqView
  2. View
  3. Serializable
  4. Iterable
  5. IterableFactoryDefaults
  6. SeqOps
  7. IterableOps
  8. IterableOnceOps
  9. IterableOnce
  10. AnyRef
  11. Any

Implicitly

  1. by iterableOnceExtensionMethods

  2. by any2stringadd

  3. by StringFormat

  4. by Ensuring

  5. by ArrowAssoc

  6. Hide All

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

Ungrouped