Scala Standard Library 2.13.15 - scala.collection.immutable.Range (original) (raw)
sealed abstract class Range extends AbstractSeq[Int] with IndexedSeq[Int] with IndexedSeqOps[Int, IndexedSeq, IndexedSeq[Int]] with StrictOptimizedSeqOps[Int, IndexedSeq, IndexedSeq[Int]] with IterableFactoryDefaults[Int, IndexedSeq] with Serializable
Ordering
- Alphabetic
- By Inheritance
Inherited
- Range
- Serializable
- StrictOptimizedSeqOps
- StrictOptimizedSeqOps
- StrictOptimizedIterableOps
- IndexedSeq
- IndexedSeqOps
- IndexedSeq
- IndexedSeqOps
- AbstractSeq
- Seq
- SeqOps
- Iterable
- AbstractSeq
- Seq
- Equals
- SeqOps
- PartialFunction
- Function1
- AbstractIterable
- Iterable
- IterableFactoryDefaults
- IterableOps
- IterableOnceOps
- IterableOnce
- AnyRef
- Any
Implicitly
by iterableOnceExtensionMethods
by any2stringadd
by StringFormat
by Ensuring
by ArrowAssoc
Hide All
Show All
Visibility
- Public
- Protected
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- final def ##: Int
- def +(other: String): String
- final def ++[B >: Int](suffix: IterableOnce[B]): IndexedSeq[B]
- final def ++:[B >: Int](prefix: IterableOnce[B]): IndexedSeq[B]
- final def +:[B >: Int](elem: B): IndexedSeq[B]
- def ->[B](y: B): (Range, B)
- final def :+[B >: Int](elem: B): IndexedSeq[B]
- final def :++[B >: Int](suffix: IterableOnce[B]): IndexedSeq[B]
- final def ==(arg0: Any): Boolean
- final def addString(b: mutable.StringBuilder): b.type
- final def addString(b: mutable.StringBuilder, sep: String): b.type
- def addString(b: mutable.StringBuilder, start: String, sep: String, end: String): b.type
- def andThen[C](k: PartialFunction[Int, C]): PartialFunction[Int, C]
- def andThen[C](k: (Int) => C): PartialFunction[Int, C]
- def appended[B >: Int](elem: B): IndexedSeq[B]
- def appendedAll[B >: Int](suffix: IterableOnce[B]): IndexedSeq[B]
- final def apply(idx: Int): Int
- def applyOrElse[A1 <: Int, B1 >: Int](x: A1, default: (A1) => B1): B1
- final def applyPreferredMaxLength: Int
- final def asInstanceOf[T0]: T0
- final def by(step: Int): Range
- def canEqual(that: Any): Boolean
- def className: String
- def clone(): AnyRef
- final def coll: Range.this.type
- def collect[B](pf: PartialFunction[Int, B]): IndexedSeq[B]
- def collectFirst[B](pf: PartialFunction[Int, B]): Option[B]
- def combinations(n: Int): Iterator[IndexedSeq[Int]]
- def compose[R](k: PartialFunction[R, Int]): PartialFunction[R, Int]
- def compose[A](g: (A) => Int): (A) => Int
- final def concat[B >: Int](suffix: IterableOnce[B]): IndexedSeq[B]
- final def contains[B >: Int](elem: B): Boolean
- final def contains(x: Int): Boolean
- def containsSlice[B >: Int](that: collection.Seq[B]): Boolean
- final def copy(start: Int = start, end: Int = end, step: Int = step, isInclusive: Boolean = isInclusive): Range
- def copyToArray[B >: Int](xs: Array[B], start: Int, len: Int): Int
- def copyToArray[B >: Int](xs: Array[B], start: Int): Int
- def copyToArray[B >: Int](xs: Array[B]): Int
- def corresponds[B](that: collection.Seq[B])(p: (Int, B) => Boolean): Boolean
- def corresponds[B](that: IterableOnce[B])(p: (Int, B) => Boolean): Boolean
- def count(p: (Int) => Boolean): Int
- def diff[B >: Int](that: collection.Seq[B]): IndexedSeq[Int]
- def distinct: Range
- def distinctBy[B](f: (Int) => B): IndexedSeq[Int]
- final def drop(n: Int): Range
- final def dropRight(n: Int): Range
- final def dropWhile(p: (Int) => Boolean): Range
- def elementWise: ElementWiseExtractor[Int, Int]
- def empty: IndexedSeq[Int]
- val end: Int
- def endsWith[B >: Int](that: collection.Iterable[B]): Boolean
- def ensuring(cond: (Range) => Boolean, msg: => Any): Range
- def ensuring(cond: (Range) => Boolean): Range
- def ensuring(cond: Boolean, msg: => Any): Range
- def ensuring(cond: Boolean): Range
- final def eq(arg0: AnyRef): Boolean
- final def equals(other: Any): Boolean
- def exists(p: (Int) => Boolean): Boolean
- def filter(pred: (Int) => Boolean): IndexedSeq[Int]
- def filterImpl(pred: (Int) => Boolean, isFlipped: Boolean): IndexedSeq[Int]
- def filterNot(pred: (Int) => Boolean): IndexedSeq[Int]
- def finalize(): Unit
- def find(p: (Int) => Boolean): Option[Int]
- def findLast(p: (Int) => Boolean): Option[Int]
- def flatMap[B](f: (Int) => IterableOnce[B]): IndexedSeq[B]
- def flatten[B](implicit toIterableOnce: (Int) => IterableOnce[B]): IndexedSeq[B]
- def fold[A1 >: Int](z: A1)(op: (A1, A1) => A1): A1
- def foldLeft[B](z: B)(op: (B, Int) => B): B
- def foldRight[B](z: B)(op: (Int, B) => B): B
- def forall(p: (Int) => Boolean): Boolean
- final def foreach[U](f: (Int) => U): Unit
- def fromSpecific(coll: IterableOnce[Int]): IndexedSeq[Int]
- final def getClass(): Class[_ <: AnyRef]
- def groupBy[K](f: (Int) => K): Map[K, IndexedSeq[Int]]
- def groupMap[K, B](key: (Int) => K)(f: (Int) => B): Map[K, IndexedSeq[B]]
- def groupMapReduce[K, B](key: (Int) => K)(f: (Int) => B)(reduce: (B, B) => B): Map[K, B]
- def grouped(size: Int): Iterator[Range]
- final def hashCode(): Int
- final def head: Int
- def headOption: Option[Int]
- final def inclusive: Range
- final def indexOf[B >: Int](elem: B, from: Int = 0): Int
- def indexOf[B >: Int](elem: B): Int
- def indexOfSlice[B >: Int](that: collection.Seq[B]): Int
- def indexOfSlice[B >: Int](that: collection.Seq[B], from: Int): Int
- def indexWhere(p: (Int) => Boolean): Int
- def indexWhere(p: (Int) => Boolean, from: Int): Int
- def indices: Range
- final def init: Range
- def inits: Iterator[Range]
- def intersect[B >: Int](that: collection.Seq[B]): IndexedSeq[Int]
- def isDefinedAt(idx: Int): Boolean
- final val isEmpty: Boolean
- final def isInstanceOf[T0]: Boolean
- def isTraversableAgain: Boolean
- def iterableFactory: SeqFactory[IndexedSeq]
- final def iterator: Iterator[Int]
- def knownSize: Int
- final def last: Int
- final def lastIndexOf[B >: Int](elem: B, end: Int = length - 1): Int
- def lastIndexOfSlice[B >: Int](that: collection.Seq[B]): Int
- def lastIndexOfSlice[B >: Int](that: collection.Seq[B], end: Int): Int
- def lastIndexWhere(p: (Int) => Boolean): Int
- def lastIndexWhere(p: (Int) => Boolean, end: Int): Int
- def lastOption: Option[Int]
- def lazyZip[B](that: collection.Iterable[B]): LazyZip2[Int, B, Range.this.type]
- final def length: Int
- final def lengthCompare(that: collection.Iterable[_]): Int
- final def lengthCompare(len: Int): Int
- final def lengthIs: SizeCompareOps
- def lift: (Int) => Option[Int]
- def map[B](f: (Int) => B): IndexedSeq[B]
- final def max[A1 >: Int](implicit ord: Ordering[A1]): Int
- def maxBy[B](f: (Int) => B)(implicit ord: math.Ordering[B]): Int
- def maxByOption[B](f: (Int) => B)(implicit ord: math.Ordering[B]): Option[Int]
- def maxOption[B >: Int](implicit ord: math.Ordering[B]): Option[Int]
- final def min[A1 >: Int](implicit ord: Ordering[A1]): Int
- def minBy[B](f: (Int) => B)(implicit ord: math.Ordering[B]): Int
- def minByOption[B](f: (Int) => B)(implicit ord: math.Ordering[B]): Option[Int]
- def minOption[B >: Int](implicit ord: math.Ordering[B]): Option[Int]
- final def mkString: String
- final def mkString(sep: String): String
- final def mkString(start: String, sep: String, end: String): String
- final def ne(arg0: AnyRef): Boolean
- def newSpecificBuilder: Builder[Int, IndexedSeq[Int]]
- def nonEmpty: Boolean
- final def notify(): Unit
- final def notifyAll(): Unit
- def occCounts[B](sq: collection.Seq[B]): mutable.Map[B, Int]
- def orElse[A1 <: Int, B1 >: Int](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
- def padTo[B >: Int](len: Int, elem: B): IndexedSeq[B]
- def partition(p: (Int) => Boolean): (IndexedSeq[Int], IndexedSeq[Int])
- def partitionMap[A1, A2](f: (Int) => Either[A1, A2]): (IndexedSeq[A1], IndexedSeq[A2])
- def patch[B >: Int](from: Int, other: IterableOnce[B], replaced: Int): IndexedSeq[B]
- def permutations: Iterator[IndexedSeq[Int]]
- def prepended[B >: Int](elem: B): IndexedSeq[B]
- def prependedAll[B >: Int](prefix: IterableOnce[B]): IndexedSeq[B]
- def product[B >: Int](implicit num: math.Numeric[B]): B
- def reduce[B >: Int](op: (B, B) => B): B
- def reduceLeft[B >: Int](op: (B, Int) => B): B
- def reduceLeftOption[B >: Int](op: (B, Int) => B): Option[B]
- def reduceOption[B >: Int](op: (B, B) => B): Option[B]
- def reduceRight[B >: Int](op: (Int, B) => B): B
- def reduceRightOption[B >: Int](op: (Int, B) => B): Option[B]
- final def reverse: Range
- def reverseIterator: Iterator[Int]
- def reversed: collection.Iterable[Int]
- def runWith[U](action: (Int) => U): (Int) => Boolean
- def sameElements[B >: Int](that: scala.IterableOnce[B]): Boolean
- def scan[B >: Int](z: B)(op: (B, B) => B): IndexedSeq[B]
- def scanLeft[B](z: B)(op: (B, Int) => B): IndexedSeq[B]
- def scanRight[B](z: B)(op: (Int, B) => B): IndexedSeq[B]
- def search[B >: Int](elem: B, from: Int, to: Int)(implicit ord: math.Ordering[B]): SearchResult
- def search[B >: Int](elem: B)(implicit ord: math.Ordering[B]): SearchResult
- def segmentLength(p: (Int) => Boolean, from: Int): Int
- final def segmentLength(p: (Int) => Boolean): Int
- final def size: Int
- final def sizeCompare(that: collection.Iterable[_]): Int
- final def sizeCompare(otherSize: Int): Int
- final def sizeIs: SizeCompareOps
- final def slice(from: Int, until: Int): Range
- def sliding(size: Int, step: Int): Iterator[IndexedSeq[Int]]
- def sliding(size: Int): Iterator[IndexedSeq[Int]]
- def sortBy[B](f: (Int) => B)(implicit ord: Ordering[B]): IndexedSeq[Int]
- def sortWith(lt: (Int, Int) => Boolean): IndexedSeq[Int]
- def sorted[B >: Int](implicit ord: Ordering[B]): IndexedSeq[Int]
- final def span(p: (Int) => Boolean): (Range, Range)
- final def splitAt(n: Int): (Range, Range)
- val start: Int
- def startsWith[B >: Int](that: IterableOnce[B], offset: Int = 0): Boolean
- val step: Int
- final def stepper[S <: Stepper[_]](implicit shape: StepperShape[Int, S]): S with EfficientSplit
- final def strictOptimizedCollect[B, C2](b: Builder[B, C2], pf: PartialFunction[Int, B]): C2
- final def strictOptimizedConcat[B >: Int, C2](that: IterableOnce[B], b: Builder[B, C2]): C2
- final def strictOptimizedFlatMap[B, C2](b: Builder[B, C2], f: (Int) => IterableOnce[B]): C2
- final def strictOptimizedFlatten[B, C2](b: Builder[B, C2])(implicit toIterableOnce: (Int) => IterableOnce[B]): C2
- final def strictOptimizedMap[B, C2](b: Builder[B, C2], f: (Int) => B): C2
- final def strictOptimizedZip[B, C2](that: IterableOnce[B], b: Builder[(Int, B), C2]): C2
- def stringPrefix: String
- final def sum[B >: Int](implicit num: Numeric[B]): Int
- final def synchronized[T0](arg0: => T0): T0
- final def tail: Range
- def tails: Iterator[Range]
- final def take(n: Int): Range
- final def takeRight(n: Int): Range
- final def takeWhile(p: (Int) => Boolean): Range
- def tapEach[U](f: (Int) => U): IndexedSeq[Int]
- def to[C1](factory: Factory[Int, C1]): C1
- def toArray[B >: Int](implicit arg0: ClassTag[B]): Array[B]
- final def toBuffer[B >: Int]: Buffer[B]
- final def toIndexedSeq: IndexedSeq[Int]
- def toList: List[Int]
- def toMap[K, V](implicit ev: <:<[Int, (K, V)]): Map[K, V]
- final def toSeq: Range.this.type
- def toSet[B >: Int]: Set[B]
- final def toString(): String
- def toVector: Vector[Int]
- def transpose[B](implicit asIterable: (Int) => collection.Iterable[B]): IndexedSeq[IndexedSeq[B]]
- def unapply(a: Int): Option[Int]
- def unzip[A1, A2](implicit asPair: (Int) => (A1, A2)): (IndexedSeq[A1], IndexedSeq[A2])
- def unzip3[A1, A2, A3](implicit asTriple: (Int) => (A1, A2, A3)): (IndexedSeq[A1], IndexedSeq[A2], IndexedSeq[A3])
- def updated[B >: Int](index: Int, elem: B): IndexedSeq[B]
- def view: IndexedSeqView[Int]
- final def wait(): Unit
- final def wait(arg0: Long, arg1: Int): Unit
- final def wait(arg0: Long): Unit
- def withFilter(p: (Int) => Boolean): WithFilter[Int, [_]IndexedSeq[_]]
- def zip[B](that: IterableOnce[B]): IndexedSeq[(Int, B)]
- def zipAll[A1 >: Int, B](that: collection.Iterable[B], thisElem: A1, thatElem: B): IndexedSeq[(A1, B)]
- def zipWithIndex: IndexedSeq[(Int, Int)]
Deprecated Value Members
- def /:[B](z: B)(op: (B, Int) => B): B
- final def /:[B](z: B)(op: (B, Int) => B): B
- def :\[B](z: B)(op: (Int, B) => B): B
- final def :\[B](z: B)(op: (Int, B) => B): B
- def aggregate[B](z: => B)(seqop: (B, Int) => B, combop: (B, B) => B): B
- def collectFirst[B](f: PartialFunction[Int, B]): Option[B]
- def companion: IterableFactory[[_]IndexedSeq[_]]
- def copyToBuffer(dest: Buffer[Int]): Unit
- final def copyToBuffer[B >: Int](dest: Buffer[B]): Unit
- def count(f: (Int) => Boolean): Int
- def exists(f: (Int) => Boolean): Boolean
- def filter(f: (Int) => Boolean): Iterator[Int]
- def find(p: (Int) => Boolean): Option[Int]
- def flatMap[B](f: (Int) => IterableOnce[B]): IterableOnce[B]
- def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
- def foldLeft[B](z: B)(op: (B, Int) => B): B
- def foldRight[B](z: B)(op: (Int, B) => B): B
- def forall(f: (Int) => Boolean): Boolean
- def foreach[U](f: (Int) => U): Unit
- def formatted(fmtstr: String): String
- def hasDefiniteSize: Boolean
- def isEmpty: Boolean
- def map[B](f: (Int) => B): IterableOnce[B]
- def max(implicit ord: math.Ordering[Int]): Int
- def maxBy[B](f: (Int) => B)(implicit cmp: math.Ordering[B]): Int
- def min(implicit ord: math.Ordering[Int]): Int
- def minBy[B](f: (Int) => B)(implicit cmp: math.Ordering[B]): Int
- def mkString: String
- def mkString(sep: String): String
- def mkString(start: String, sep: String, end: String): String
- def nonEmpty: Boolean
- final def prefixLength(p: (Int) => Boolean): Int
- def product(implicit num: math.Numeric[Int]): Int
- def reduce(f: (Int, Int) => Int): Int
- def reduceLeft(f: (Int, Int) => Int): Int
- def reduceLeftOption(f: (Int, Int) => Int): Option[Int]
- def reduceOption(f: (Int, Int) => Int): Option[Int]
- def reduceRight(f: (Int, Int) => Int): Int
- def reduceRightOption(f: (Int, Int) => Int): Option[Int]
- final def repr: IndexedSeq[Int]
- def reverseMap[B](f: (Int) => B): IndexedSeq[B]
- def sameElements[B >: A](that: IterableOnce[B]): Boolean
- def seq: Range.this.type
- def size: Int
- def sum(implicit num: math.Numeric[Int]): Int
- def to[C1](factory: Factory[Int, C1]): C1
- def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
- def toBuffer[B >: A]: Buffer[B]
- def toIndexedSeq: collection.IndexedSeq[Int]
- final def toIterable: collection.Iterable[Int]
- final def toIterable: Range.this.type
- def toIterator: Iterator[Int]
- final def toIterator: Iterator[Int]
- def toList: List[Int]
- def toMap[K, V](implicit ev: <:<[Int, (K, V)]): Map[K, V]
- def toSeq: Seq[Int]
- def toSet[B >: A]: Set[B]
- def toStream: Stream[Int]
- final def toStream: Stream[Int]
- final def toTraversable: collection.Traversable[Int]
- final def toTraversable: collection.Traversable[Int]
- def toVector: Vector[Int]
- final def union[B >: Int](that: collection.Seq[B]): IndexedSeq[B]
- def view(from: Int, until: Int): IndexedSeqView[Int]
- def withFilter(f: (Int) => Boolean): Iterator[Int]
- def →[B](y: B): (Range, B)