ImmutableArray

sealed abstract
class ImmutableArray[+A]

An immutable wrapper for arrays

Type Params
A

type of the elements of the array

Companion
object
class Object
trait Matchable
class Any
class ofBoolean
class ofByte
class ofChar
class ofDouble
class ofFloat
class ofInt
class ofLong
class ofRef[A]
class ofShort
class ofUnit

Value members

Abstract methods

def ++[B >: A : ClassTag](other: ImmutableArray[B]): ImmutableArray[B]
def length: Int
def slice(from: Int, until: Int): ImmutableArray[A]
def toArray[B >: A : ClassTag]: Array[B]

Concrete methods

def apply(index: Int): A
Implicitly added by wrapArray
def asString: String
Implicitly added by wrapRopeChar
def isEmpty: Boolean
def length: Int
Implicitly added by wrapArray

Deprecated methods

@deprecated("removed in scalaz 7.3: not total", since = "7.2.19")
def apply(index: Int): A
Deprecated
[Since version 7.2.19]
@deprecated("removed in scalaz 7.3: not total", since = "7.2.19")
def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Unit
Deprecated
[Since version 7.2.19]

Inherited methods

@inline
final
def ++[B >: A](suffix: IterableOnce[B]): IndexedSeq[B]
Implicitly added by wrapArray
Inherited from
IterableOps
@inline
final
def +:[B >: A](elem: B): IndexedSeq[B]
Implicitly added by wrapArray
Inherited from
SeqOps
@inline
final
def :+[B >: A](elem: B): IndexedSeq[B]
Implicitly added by wrapArray
Inherited from
SeqOps
@inline
final
def :++[B >: A](suffix: IterableOnce[B]): IndexedSeq[B]
Implicitly added by wrapArray
Inherited from
SeqOps
@inline
final
def addString(b: StringBuilder): StringBuilder
Implicitly added by wrapArray
Inherited from
IterableOnceOps
@inline
final
def addString(b: StringBuilder, sep: String): StringBuilder
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def andThen[C](k: PartialFunction[A, C]): PartialFunction[Int, C]
Implicitly added by wrapArray
Inherited from
PartialFunction
def appended[B >: A](elem: B): IndexedSeq[B]
Implicitly added by wrapArray
Inherited from
SeqOps
def appendedAll[B >: A](suffix: IterableOnce[B]): IndexedSeq[B]
Implicitly added by wrapArray
Inherited from
SeqOps
def applyOrElse[A1 <: Int, B1 >: A](x: A1, default: A1 => B1): B1
Implicitly added by wrapArray
Inherited from
PartialFunction
def collect[B](pf: PartialFunction[A, B]): IndexedSeq[B]
Implicitly added by wrapArray
Inherited from
IterableOps
def collectFirst[B](pf: PartialFunction[A, B]): Option[B]
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def combinations(n: Int): Iterator[IndexedSeq[A]]
Implicitly added by wrapArray
Inherited from
SeqOps
def compose[R](k: PartialFunction[R, Int]): PartialFunction[R, A]
Implicitly added by wrapArray
Inherited from
PartialFunction
@unspecialized
def compose[A](g: A => Int): A => A
Implicitly added by wrapArray
Inherited from
Function1
def contains[A1 >: A](elem: A1): Boolean
Implicitly added by wrapArray
Inherited from
SeqOps
def containsSlice[B >: A](that: Seq[B]): Boolean
Implicitly added by wrapArray
Inherited from
SeqOps
def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Int
Implicitly added by wrapArray
Inherited from
IterableOnceOps
@deprecatedOverriding(message = "This should always forward to the 3-arg version of this method", since = "2.13.4")
def copyToArray[B >: A](xs: Array[B], start: Int): Int
Implicitly added by wrapArray
Inherited from
IterableOnceOps
@deprecatedOverriding(message = "This should always forward to the 3-arg version of this method", since = "2.13.4")
def copyToArray[B >: A](xs: Array[B]): Int
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def corresponds[B](that: IterableOnce[B])(p: (A, B) => Boolean): Boolean
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def corresponds[B](that: Seq[B])(p: (A, B) => Boolean): Boolean
Implicitly added by wrapArray
Inherited from
SeqOps
def count(p: A => Boolean): Int
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def diff[B >: A](that: Seq[B]): IndexedSeq[A]
Implicitly added by wrapArray
Inherited from
SeqOps
def distinct: IndexedSeq[A]
Implicitly added by wrapArray
Inherited from
SeqOps
def distinctBy[B](f: A => B): IndexedSeq[A]
Implicitly added by wrapArray
Inherited from
SeqOps
def dropWhile(p: A => Boolean): IndexedSeq[A]
Implicitly added by wrapArray
Inherited from
IterableOps
def elementWise: ElementWiseExtractor[Int, A]
Implicitly added by wrapArray
Inherited from
PartialFunction
def endsWith[B >: A](that: Iterable[B]): Boolean
Implicitly added by wrapArray
Inherited from
SeqOps
def exists(p: A => Boolean): Boolean
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def filter(pred: A => Boolean): IndexedSeq[A]
Implicitly added by wrapArray
Inherited from
IterableOps
def filterNot(pred: A => Boolean): IndexedSeq[A]
Implicitly added by wrapArray
Inherited from
IterableOps
def find(p: A => Boolean): Option[A]
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def findLast(p: A => Boolean): Option[A]
Implicitly added by wrapArray
Inherited from
SeqOps
def flatMap[B](f: A => IterableOnce[B]): IndexedSeq[B]
Implicitly added by wrapArray
Inherited from
IterableOps
def flatten[B](implicit asIterable: A => IterableOnce[B]): IndexedSeq[B]
Implicitly added by wrapArray
Inherited from
IterableOps
def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def foldLeft[B](z: B)(op: (B, A) => B): B
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def forall(p: A => Boolean): Boolean
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def foreach[U](f: A => U): Unit
Implicitly added by wrapArray
Inherited from
IterableOnceOps
protected
def fromSpecific(coll: IterableOnce[A]): IndexedSeq[A]
Implicitly added by wrapArray
Inherited from
IterableFactoryDefaults
def groupBy[K](f: A => K): Map[K, IndexedSeq[A]]
Implicitly added by wrapArray
Inherited from
IterableOps
def groupMap[K, B](key: A => K)(f: A => B): Map[K, IndexedSeq[B]]
Implicitly added by wrapArray
Inherited from
IterableOps
def groupMapReduce[K, B](key: A => K)(f: A => B)(reduce: (B, B) => B): Map[K, B]
Implicitly added by wrapArray
Inherited from
IterableOps
def grouped(size: Int): Iterator[IndexedSeq[A]]
Implicitly added by wrapArray
Inherited from
IterableOps
@deprecatedOverriding(message = "Override indexOf(elem, from) instead - indexOf(elem) calls indexOf(elem, 0)", since = "2.13.0")
def indexOf[B >: A](elem: B): Int
Implicitly added by wrapArray
Inherited from
SeqOps
def indexOf[B >: A](elem: B, from: Int): Int
Implicitly added by wrapArray
Inherited from
SeqOps
@deprecatedOverriding(message = "Override indexOfSlice(that, from) instead - indexOfSlice(that) calls indexOfSlice(that, 0)", since = "2.13.0")
def indexOfSlice[B >: A](that: Seq[B]): Int
Implicitly added by wrapArray
Inherited from
SeqOps
def indexOfSlice[B >: A](that: Seq[B], from: Int): Int
Implicitly added by wrapArray
Inherited from
SeqOps
@deprecatedOverriding(message = "Override indexWhere(p, from) instead - indexWhere(p) calls indexWhere(p, 0)", since = "2.13.0")
def indexWhere(p: A => Boolean): Int
Implicitly added by wrapArray
Inherited from
SeqOps
def indexWhere(p: A => Boolean, from: Int): Int
Implicitly added by wrapArray
Inherited from
SeqOps
def indices: Range
Implicitly added by wrapArray
Inherited from
SeqOps
def init: IndexedSeq[A]
Implicitly added by wrapArray
Inherited from
IterableOps
def inits: Iterator[IndexedSeq[A]]
Implicitly added by wrapArray
Inherited from
IterableOps
def intersect[B >: A](that: Seq[B]): IndexedSeq[A]
Implicitly added by wrapArray
Inherited from
SeqOps
def isDefinedAt(idx: Int): Boolean
Implicitly added by wrapArray
Inherited from
SeqOps
def iterator: Iterator[A]
Implicitly added by wrapArray
Inherited from
IndexedSeqOps
def lastIndexOf[B >: A](elem: B, end: Int): Int
Implicitly added by wrapArray
Inherited from
SeqOps
@deprecatedOverriding(message = "Override lastIndexOfSlice(that, end) instead - lastIndexOfSlice(that) calls lastIndexOfSlice(that, Int.MaxValue)", since = "2.13.0")
def lastIndexOfSlice[B >: A](that: Seq[B]): Int
Implicitly added by wrapArray
Inherited from
SeqOps
def lastIndexOfSlice[B >: A](that: Seq[B], end: Int): Int
Implicitly added by wrapArray
Inherited from
SeqOps
@deprecatedOverriding(message = "Override lastIndexWhere(p, end) instead - lastIndexWhere(p) calls lastIndexWhere(p, Int.MaxValue)", since = "2.13.0")
def lastIndexWhere(p: A => Boolean): Int
Implicitly added by wrapArray
Inherited from
SeqOps
def lastIndexWhere(p: A => Boolean, end: Int): Int
Implicitly added by wrapArray
Inherited from
SeqOps
def lastOption: Option[A]
Implicitly added by wrapArray
Inherited from
IterableOps
def lazyZip[B](that: Iterable[B]): LazyZip2[A, B, WrappedImmutableArray[A]]
Implicitly added by wrapArray
Inherited from
Iterable
@inline
final
def lengthIs: SizeCompareOps
Implicitly added by wrapArray
Inherited from
SeqOps
def lift: Int => Option[A]
Implicitly added by wrapArray
Inherited from
PartialFunction
def max[B >: A](implicit ord: Ordering[B]): A
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def maxBy[B](f: A => B)(implicit cmp: Ordering[B]): A
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def maxByOption[B](f: A => B)(implicit cmp: Ordering[B]): Option[A]
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def maxOption[B >: A](implicit ord: Ordering[B]): Option[A]
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def min[B >: A](implicit ord: Ordering[B]): A
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def minBy[B](f: A => B)(implicit cmp: Ordering[B]): A
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def minByOption[B](f: A => B)(implicit cmp: Ordering[B]): Option[A]
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def minOption[B >: A](implicit ord: Ordering[B]): Option[A]
Implicitly added by wrapArray
Inherited from
IterableOnceOps
@inline
final
def mkString: String
Implicitly added by wrapArray
Inherited from
IterableOnceOps
@inline
final
def mkString(sep: String): String
Implicitly added by wrapArray
Inherited from
IterableOnceOps
final
def mkString(start: String, sep: String, end: String): String
Implicitly added by wrapArray
Inherited from
IterableOnceOps
protected
def newSpecificBuilder: Builder[A, IndexedSeq[A]]
Implicitly added by wrapArray
Inherited from
IterableFactoryDefaults
@deprecatedOverriding(message = "nonEmpty is defined as !isEmpty; override isEmpty instead", since = "2.13.0")
def nonEmpty: Boolean
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def orElse[A1 <: Int, B1 >: A](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
Implicitly added by wrapArray
Inherited from
PartialFunction
def padTo[B >: A](len: Int, elem: B): IndexedSeq[B]
Implicitly added by wrapArray
Inherited from
SeqOps
def partition(p: A => Boolean): (IndexedSeq[A], IndexedSeq[A])
Implicitly added by wrapArray
Inherited from
IterableOps
def partitionMap[A1, A2](f: A => Either[A1, A2]): (IndexedSeq[A1], IndexedSeq[A2])
Implicitly added by wrapArray
Inherited from
IterableOps
def patch[B >: A](from: Int, other: IterableOnce[B], replaced: Int): IndexedSeq[B]
Implicitly added by wrapArray
Inherited from
SeqOps
def permutations: Iterator[IndexedSeq[A]]
Implicitly added by wrapArray
Inherited from
SeqOps
def prependedAll[B >: A](prefix: IterableOnce[B]): IndexedSeq[B]
Implicitly added by wrapArray
Inherited from
SeqOps
def product[B >: A](implicit num: Numeric[B]): B
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def reduce[B >: A](op: (B, B) => B): B
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def reduceLeft[B >: A](op: (B, A) => B): B
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def reduceLeftOption[B >: A](op: (B, A) => B): Option[B]
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def reduceOption[B >: A](op: (B, B) => B): Option[B]
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def reduceRight[B >: A](op: (A, B) => B): B
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def reduceRightOption[B >: A](op: (A, B) => B): Option[B]
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def runWith[U](action: A => U): Int => Boolean
Implicitly added by wrapArray
Inherited from
PartialFunction
def scala$collection$SeqOps$$super$concat[B >: A](suffix: IterableOnce[B]): IndexedSeq[B]
Implicitly added by wrapArray
Inherited from
SeqOps
def scala$collection$SeqOps$$super$sizeCompare(that: Iterable[_]): Int
Implicitly added by wrapArray
Inherited from
SeqOps
Implicitly added by wrapArray
Inherited from
SeqOps
Implicitly added by wrapArray
Inherited from
IndexedSeq
def scala$collection$immutable$IndexedSeq$$super$sameElements[B >: A](that: IterableOnce[B]): Boolean
Implicitly added by wrapArray
Inherited from
IndexedSeq
def scala$collection$immutable$IndexedSeqOps$$super$slice(from: Int, until: Int): IndexedSeq[A]
Implicitly added by wrapArray
Inherited from
IndexedSeqOps
def scan[B >: A](z: B)(op: (B, B) => B): IndexedSeq[B]
Implicitly added by wrapArray
Inherited from
IterableOps
def scanLeft[B](z: B)(op: (B, A) => B): IndexedSeq[B]
Implicitly added by wrapArray
Inherited from
IterableOps
def scanRight[B](z: B)(op: (A, B) => B): IndexedSeq[B]
Implicitly added by wrapArray
Inherited from
IterableOps
def segmentLength(p: A => Boolean, from: Int): Int
Implicitly added by wrapArray
Inherited from
SeqOps
final
def segmentLength(p: A => Boolean): Int
Implicitly added by wrapArray
Inherited from
SeqOps
@inline
final
def sizeIs: SizeCompareOps
Implicitly added by wrapArray
Inherited from
IterableOps
def sliding(size: Int, step: Int): Iterator[IndexedSeq[A]]
Implicitly added by wrapArray
Inherited from
IterableOps
def sliding(size: Int): Iterator[IndexedSeq[A]]
Implicitly added by wrapArray
Inherited from
IterableOps
def sortBy[B](f: A => B)(implicit ord: Ordering[B]): IndexedSeq[A]
Implicitly added by wrapArray
Inherited from
SeqOps
def sortWith(lt: (A, A) => Boolean): IndexedSeq[A]
Implicitly added by wrapArray
Inherited from
SeqOps
def sorted[B >: A](implicit ord: Ordering[B]): IndexedSeq[A]
Implicitly added by wrapArray
Inherited from
SeqOps
def span(p: A => Boolean): (IndexedSeq[A], IndexedSeq[A])
Implicitly added by wrapArray
Inherited from
IterableOps
def startsWith[B >: A](that: IterableOnce[B], offset: Int): Boolean
Implicitly added by wrapArray
Inherited from
SeqOps
def sum[B >: A](implicit num: Numeric[B]): B
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def tail: IndexedSeq[A]
Implicitly added by wrapArray
Inherited from
IterableOps
def tails: Iterator[IndexedSeq[A]]
Implicitly added by wrapArray
Inherited from
IterableOps
def takeWhile(p: A => Boolean): IndexedSeq[A]
Implicitly added by wrapArray
Inherited from
IterableOps
def to[C1](factory: Factory[A, C1]): C1
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def toArray[B >: A : ClassTag]: Array[B]
Implicitly added by wrapArray
Inherited from
IterableOnceOps
@inline
final
def toBuffer[B >: A]: Buffer[B]
Implicitly added by wrapArray
Inherited from
IterableOnceOps
Implicitly added by wrapArray
Inherited from
Iterable
def toList: List[A]
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def toMap[K, V](implicit ev: A <:< (K, V)): Map[K, V]
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def toSet[B >: A]: Set[B]
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def toVector: Vector[A]
Implicitly added by wrapArray
Inherited from
IterableOnceOps
def transpose[B](implicit asIterable: A => Iterable[B]): IndexedSeq[IndexedSeq[B]]
Implicitly added by wrapArray
Inherited from
IterableOps
def unapply(a: Int): Option[A]
Implicitly added by wrapArray
Inherited from
PartialFunction
def unzip[A1, A2](implicit asPair: A => (A1, A2)): (IndexedSeq[A1], IndexedSeq[A2])
Implicitly added by wrapArray
Inherited from
IterableOps
def unzip3[A1, A2, A3](implicit asTriple: A => (A1, A2, A3)): (IndexedSeq[A1], IndexedSeq[A2], IndexedSeq[A3])
Implicitly added by wrapArray
Inherited from
IterableOps
def updated[B >: A](index: Int, elem: B): IndexedSeq[B]
Implicitly added by wrapArray
Inherited from
SeqOps
def withFilter(p: A => Boolean): WithFilter[A, IndexedSeq]
Implicitly added by wrapArray
Inherited from
IterableOps
def zip[B](that: IterableOnce[B]): IndexedSeq[(A, B)]
Implicitly added by wrapArray
Inherited from
IterableOps
def zipAll[A1 >: A, B](that: Iterable[B], thisElem: A1, thatElem: B): IndexedSeq[(A1, B)]
Implicitly added by wrapArray
Inherited from
IterableOps
def zipWithIndex: IndexedSeq[(A, Int)]
Implicitly added by wrapArray
Inherited from
IterableOps

Deprecated and Inherited methods

@inline @deprecated(message = "Use foldLeft instead of /:", since = "2.13.0")
final
def /:[B](z: B)(op: (B, A) => B): B
Implicitly added by wrapArray
Deprecated
[Since version 2.13.0] Use foldLeft instead of /:
Inherited from
IterableOnceOps
@inline @deprecated(message = "Use foldRight instead of :\\", since = "2.13.0")
final
def :\[B](z: B)(op: (A, B) => B): B
Implicitly added by wrapArray
Deprecated
[Since version 2.13.0] Use foldRight instead of :\\
Inherited from
IterableOnceOps
@deprecated(message = "`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.", since = "2.13.0")
def aggregate[B](z: => B)(seqop: (B, A) => B, combop: (B, B) => B): B
Implicitly added by wrapArray
Deprecated
[Since version 2.13.0] `aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.
Inherited from
IterableOnceOps
@inline @deprecatedOverriding(message = "Use iterableFactory instead", since = "2.13.0") @deprecated(message = "Use iterableFactory instead", since = "2.13.0")
def companion: IterableFactory[IndexedSeq]
Implicitly added by wrapArray
Deprecated
[Since version 2.13.0] Use iterableFactory instead
Inherited from
IterableOps
@inline @deprecated(message = "Use `dest ++= coll` instead", since = "2.13.0")
final
def copyToBuffer[B >: A](dest: Buffer[B]): Unit
Implicitly added by wrapArray
Deprecated
[Since version 2.13.0] Use `dest ++= coll` instead
Inherited from
IterableOnceOps
@deprecated(message = "Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)", since = "2.13.0")
def hasDefiniteSize: Boolean
Implicitly added by wrapArray
Deprecated
[Since version 2.13.0] Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
Inherited from
IterableOnceOps
@inline @deprecated(message = "Use segmentLength instead of prefixLength", since = "2.13.0")
final
def prefixLength(p: A => Boolean): Int
Implicitly added by wrapArray
Deprecated
[Since version 2.13.0] Use segmentLength instead of prefixLength
Inherited from
SeqOps
@deprecated(message = "Use coll instead of repr in a collection implementation, use the collection value itself from the outside", since = "2.13.0")
final
def repr: IndexedSeq[A]
Implicitly added by wrapArray
Deprecated
[Since version 2.13.0] Use coll instead of repr in a collection implementation, use the collection value itself from the outside
Inherited from
IterableOps
@deprecated(message = "Use .reverseIterator.map(f).to(...) instead of .reverseMap(f)", since = "2.13.0")
def reverseMap[B](f: A => B): IndexedSeq[B]
Implicitly added by wrapArray
Deprecated
[Since version 2.13.0] Use .reverseIterator.map(f).to(...) instead of .reverseMap(f)
Inherited from
SeqOps
@deprecated(message = "Iterable.seq always returns the iterable itself", since = "2.13.0")
Implicitly added by wrapArray
Deprecated
[Since version 2.13.0] Iterable.seq always returns the iterable itself
Inherited from
Iterable
@inline @deprecated(message = "Use .iterator instead of .toIterator", since = "2.13.0")
final
def toIterator: Iterator[A]
Implicitly added by wrapArray
Deprecated
[Since version 2.13.0] Use .iterator instead of .toIterator
Inherited from
IterableOnceOps
@inline @deprecated(message = "Use .to(LazyList) instead of .toStream", since = "2.13.0")
final
def toStream: Stream[A]
Implicitly added by wrapArray
Deprecated
[Since version 2.13.0] Use .to(LazyList) instead of .toStream
Inherited from
IterableOnceOps
@deprecated(message = "Use toIterable instead", since = "2.13.0")
final
def toTraversable: Iterable[A]
Implicitly added by wrapArray
Deprecated
[Since version 2.13.0] Use toIterable instead
Inherited from
IterableOps
@inline @deprecated(message = "Use `concat` instead", since = "2.13.0")
final
def union[B >: A](that: Seq[B]): IndexedSeq[B]
Implicitly added by wrapArray
Deprecated
[Since version 2.13.0] Use `concat` instead
Inherited from
SeqOps

Concrete fields

val self: ImmutableArray[Char]
Implicitly added by wrapRopeChar
Implicitly added by wrapArray