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