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

Ungrouped