class ReArray[A] extends AbstractSeq[A] with IndexedSeq[A] with Serializable
The ReArray
class provides an implementation of mutable, resizable/dynamic arrays. It is based
on Scala's ResizableArray
trait with additions and modifications. Preliminary testing has
shown it to be faster than its competition: ArrayList
and ArrayBuffer
.
-------------------------------------------------------------------------------------------
Added methods: 'shiftLeft', 'shiftLeft2', 'shiftRight', 'shiftRight2' and 'expand'.
-------------------------------------------------------------------------------------------
Modified methods: 'reduceToSize': modified for performance reasons; instead of decreasing the size0 by 1 in
a while loop and setting elements to null, it just decrements the size0 variable.
FIX: possible minor memory leak
'companion': modified to return null as it is not required by our implementation;
the ReArray
object does not extend SeqFactory
and thus 'newBuilder [A]' is absent.
'update': modified to catch the IndexOutOfBoundsException' and automatically expand the array.
'constructor': modified to take in the initial length and a normal
Array; by doing this we can
easily convert an object of type
Array to a
ReArray as the internal 'array' is
changed from
AnyRef to type
A'.
-------------------------------------------------------------------------------------------
Modified variables: 'array': the type is changed to A
from AnyRef
; this helps in assigning an Array [A]
to a ReArray [A]
; the initial value is changed to check if '_array' is null.
'size0': the initial value is changed to take care if '_array' is null.
-------------------------------------------------------------------------------------------
- Alphabetic
- By Inheritance
- ReArray
- Serializable
- IndexedSeq
- IndexedSeqOps
- IndexedSeq
- IndexedSeqOps
- AbstractSeq
- Seq
- SeqOps
- Cloneable
- Cloneable
- Iterable
- AbstractSeq
- Seq
- Equals
- SeqOps
- PartialFunction
- Function1
- AbstractIterable
- Iterable
- IterableFactoryDefaults
- IterableOps
- IterableOnceOps
- IterableOnce
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ReArray(_length: Int = 0, _array: Array[A] = null)(implicit arg0: ClassTag[A])
- _length
the initial size of the array, defaults to zero
- _array
the initial array, if any
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ++[B >: A](suffix: IterableOnce[B]): IndexedSeq[B]
- Definition Classes
- IterableOps
- Annotations
- @inline()
- final def ++:[B >: A](prefix: IterableOnce[B]): IndexedSeq[B]
- Definition Classes
- SeqOps → IterableOps
- Annotations
- @inline()
- final def +:[B >: A](elem: B): IndexedSeq[B]
- Definition Classes
- SeqOps
- Annotations
- @inline()
- final def :+[B >: A](elem: B): IndexedSeq[B]
- Definition Classes
- SeqOps
- Annotations
- @inline()
- final def :++[B >: A](suffix: IterableOnce[B]): IndexedSeq[B]
- Definition Classes
- SeqOps
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def addString(b: StringBuilder): StringBuilder
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def addString(b: StringBuilder, sep: String): StringBuilder
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
- Definition Classes
- IterableOnceOps
- def andThen[C](k: PartialFunction[A, C]): PartialFunction[Int, C]
- Definition Classes
- PartialFunction
- def andThen[C](k: (A) => C): PartialFunction[Int, C]
- Definition Classes
- PartialFunction → Function1
- def appended[B >: A](elem: B): IndexedSeq[B]
- Definition Classes
- SeqOps
- def appendedAll[B >: A](suffix: IterableOnce[B]): IndexedSeq[B]
- Definition Classes
- SeqOps
- def apply(): Array[A]
Return the internal array of the
ReArray.
- def apply(i: Int): A
Return the element at the 'i'-th index position.
Return the element at the 'i'-th index position.
- i
the index position
- Definition Classes
- ReArray → SeqOps → Function1
- def applyOrElse[A1 <: Int, B1 >: A](x: A1, default: (A1) => B1): B1
- Definition Classes
- PartialFunction
- var array: Array[A]
Set the internal array of
ReArray
.Set the internal array of
ReArray
.- Attributes
- protected
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canEqual(that: Any): Boolean
- Definition Classes
- Seq → Equals
- def className: String
- Attributes
- protected[this]
- Definition Classes
- Iterable
- def clear(): Unit
Clear the
ReArray
. - def clone(): IndexedSeq[A]
- Definition Classes
- SeqOps → Cloneable → AnyRef
- final def coll: ReArray.this.type
- Attributes
- protected
- Definition Classes
- Iterable → IterableOps
- def collect[B](pf: PartialFunction[A, B]): IndexedSeq[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def collectFirst[B](pf: PartialFunction[A, B]): Option[B]
- Definition Classes
- IterableOnceOps
- def combinations(n: Int): Iterator[IndexedSeq[A]]
- Definition Classes
- SeqOps
- def compose[R](k: PartialFunction[R, Int]): PartialFunction[R, A]
- Definition Classes
- PartialFunction
- def compose[A](g: (A) => Int): (A) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- final def concat[B >: A](suffix: IterableOnce[B]): IndexedSeq[B]
- Definition Classes
- SeqOps → IterableOps
- Annotations
- @inline()
- def contains[A1 >: A](elem: A1): Boolean
- Definition Classes
- SeqOps
- def containsSlice[B >: A](that: Seq[B]): Boolean
- Definition Classes
- SeqOps
- def copy(m: Int, n: Int, len: Int): Unit
Move parts of the array.
Move parts of the array.
- m
the source position
- n
the destination position
- len
the number of elements
- Attributes
- protected
- def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Int
Fill the given array 'xs' with at most 'len' elements of 'this' traversable starting at position 'start'.
Fill the given array 'xs' with at most 'len' elements of 'this' traversable starting at position 'start'. Copying will stop once either the end of the current traversable is reached or 'len' elements have been copied or the end of the array is reached.
- xs
the array to fill
- start
starting index
- len
number of elements to copy
- Definition Classes
- ReArray → IterableOnceOps
- def copyToArray[B >: A](xs: Array[B], start: Int): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def copyToArray[B >: A](xs: Array[B]): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def corresponds[B](that: Seq[B])(p: (A, B) => Boolean): Boolean
- Definition Classes
- SeqOps
- def corresponds[B](that: IterableOnce[B])(p: (A, B) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def count(p: (A) => Boolean): Int
- Definition Classes
- IterableOnceOps
- def diff[B >: A](that: Seq[B]): IndexedSeq[A]
- Definition Classes
- SeqOps
- def distinct: IndexedSeq[A]
- Definition Classes
- SeqOps
- def distinctBy[B](f: (A) => B): IndexedSeq[A]
- Definition Classes
- SeqOps
- def drop(n: Int): IndexedSeq[A]
- Definition Classes
- IndexedSeqOps → IterableOps → IterableOnceOps
- def dropRight(n: Int): IndexedSeq[A]
- Definition Classes
- IndexedSeqOps → IterableOps
- def dropWhile(p: (A) => Boolean): IndexedSeq[A]
- Definition Classes
- IterableOps → IterableOnceOps
- def elementWise: ElementWiseExtractor[Int, A]
- Definition Classes
- PartialFunction
- def empty: IndexedSeq[A]
- Definition Classes
- IterableFactoryDefaults → IterableOps
- def endsWith[B >: A](that: Iterable[B]): Boolean
- Definition Classes
- SeqOps
- def ensureSize(n: Int): Unit
Ensure that the internal array has at least 'n' cells.
Ensure that the internal array has at least 'n' cells.
- n
the number of cells
- Attributes
- protected
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(o: Any): Boolean
- Definition Classes
- Seq → Equals → AnyRef → Any
- def exists(p: (A) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def expand(sz: Int): Unit
Expand the array to make sure it has the required size.
Expand the array to make sure it has the required size.
- sz
the new size requirement of the array
- def filter(pred: (A) => Boolean): IndexedSeq[A]
- Definition Classes
- IterableOps → IterableOnceOps
- def filterNot(pred: (A) => Boolean): IndexedSeq[A]
- Definition Classes
- IterableOps → IterableOnceOps
- def find(p: (A) => Boolean): Option[A]
- Definition Classes
- IterableOnceOps
- def findLast(p: (A) => Boolean): Option[A]
- Definition Classes
- SeqOps
- def flatMap[B](f: (A) => IterableOnce[B]): IndexedSeq[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def flatten[B](implicit asIterable: (A) => IterableOnce[B]): IndexedSeq[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
- Definition Classes
- IterableOnceOps
- def foldLeft[B](z: B)(op: (B, A) => B): B
- Definition Classes
- IterableOnceOps
- def foldRight[B](z: B)(op: (A, B) => B): B
- Definition Classes
- IndexedSeqOps → IterableOnceOps
- def forall(p: (A) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def foreach[U](f: (A) => U): Unit
Iterate over the
ReArray
element by element.Iterate over the
ReArray
element by element.- f
the function to apply
- Definition Classes
- ReArray → IterableOnceOps
- def fromSpecific(coll: IterableOnce[A]): IndexedSeq[A]
- Attributes
- protected
- Definition Classes
- IterableFactoryDefaults → IterableOps
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def groupBy[K](f: (A) => K): Map[K, IndexedSeq[A]]
- Definition Classes
- IterableOps
- def groupMap[K, B](key: (A) => K)(f: (A) => B): Map[K, IndexedSeq[B]]
- Definition Classes
- IterableOps
- def groupMapReduce[K, B](key: (A) => K)(f: (A) => B)(reduce: (B, B) => B): Map[K, B]
- Definition Classes
- IterableOps
- def grouped(size: Int): Iterator[IndexedSeq[A]]
- Definition Classes
- IterableOps
- def hashCode(): Int
- Definition Classes
- Seq → AnyRef → Any
- def head: A
- Definition Classes
- IndexedSeqOps → IterableOps
- def headOption: Option[A]
- Definition Classes
- IndexedSeqOps → IterableOps
- def indexOf[B >: A](elem: B): Int
- Definition Classes
- SeqOps
- Annotations
- @deprecatedOverriding()
- def indexOf[B >: A](elem: B, from: Int): Int
- Definition Classes
- SeqOps
- def indexOfSlice[B >: A](that: Seq[B]): Int
- Definition Classes
- SeqOps
- Annotations
- @deprecatedOverriding()
- def indexOfSlice[B >: A](that: Seq[B], from: Int): Int
- Definition Classes
- SeqOps
- def indexWhere(p: (A) => Boolean): Int
- Definition Classes
- SeqOps
- Annotations
- @deprecatedOverriding()
- def indexWhere(p: (A) => Boolean, from: Int): Int
- Definition Classes
- SeqOps
- def indices: Range
- Definition Classes
- SeqOps
- def init: IndexedSeq[A]
- Definition Classes
- IterableOps
- def initialSize: Int
Return the initial size of the
ReArray
.Return the initial size of the
ReArray
.- Attributes
- protected
- def inits: Iterator[IndexedSeq[A]]
- Definition Classes
- IterableOps
- def intersect(b: ReArray[A]): ReArray[A]
Intersect 'this'
ReArray
withReArray
'b'.Intersect 'this'
ReArray
withReArray
'b'.- b
the ReArray to intersect with
- def intersect[B >: A](that: Seq[B]): IndexedSeq[A]
- Definition Classes
- SeqOps
- def isDefinedAt(idx: Int): Boolean
- Definition Classes
- SeqOps
- def isEmpty: Boolean
- Definition Classes
- SeqOps → IterableOnceOps
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraversableAgain: Boolean
- Definition Classes
- IterableOps → IterableOnceOps
- def iterableFactory: SeqFactory[IndexedSeq]
- Definition Classes
- IndexedSeq → IndexedSeq → Seq → Seq → Iterable → Iterable → IterableOps
- def iterator: Iterator[A]
- Definition Classes
- IndexedSeqOps → IterableOnce
- def knownSize: Int
- Definition Classes
- IndexedSeqOps → IterableOnce
- def last: A
- Definition Classes
- IndexedSeqOps → IterableOps
- def lastIndexOf[B >: A](elem: B, end: Int): Int
- Definition Classes
- SeqOps
- def lastIndexOfSlice[B >: A](that: Seq[B]): Int
- Definition Classes
- SeqOps
- Annotations
- @deprecatedOverriding()
- def lastIndexOfSlice[B >: A](that: Seq[B], end: Int): Int
- Definition Classes
- SeqOps
- def lastIndexWhere(p: (A) => Boolean): Int
- Definition Classes
- SeqOps
- Annotations
- @deprecatedOverriding()
- def lastIndexWhere(p: (A) => Boolean, end: Int): Int
- Definition Classes
- SeqOps
- def lastOption: Option[A]
- Definition Classes
- IterableOps
- def lazyZip[B](that: Iterable[B]): LazyZip2[A, B, ReArray.this.type]
- Definition Classes
- Iterable
- def length: Int
Return the length of 'this'
ReArray
.Return the length of 'this'
ReArray
.- Definition Classes
- ReArray → SeqOps
- final def lengthCompare(that: Iterable[_]): Int
- Definition Classes
- IndexedSeqOps → SeqOps
- final def lengthCompare(len: Int): Int
- Definition Classes
- IndexedSeqOps → SeqOps
- final def lengthIs: SizeCompareOps
- Definition Classes
- SeqOps
- Annotations
- @inline()
- def lift: (Int) => Option[A]
- Definition Classes
- PartialFunction
- def map[B](f: (A) => B): IndexedSeq[B]
- Definition Classes
- IndexedSeqOps → IterableOps → IterableOnceOps
- def mapInPlace(f: (A) => A): ReArray.this.type
- Definition Classes
- IndexedSeqOps
- def max[B >: A](implicit ord: Ordering[B]): A
- Definition Classes
- IterableOnceOps
- def maxBy[B](f: (A) => B)(implicit cmp: Ordering[B]): A
- Definition Classes
- IterableOnceOps
- def maxByOption[B](f: (A) => B)(implicit cmp: Ordering[B]): Option[A]
- Definition Classes
- IterableOnceOps
- def maxOption[B >: A](implicit ord: Ordering[B]): Option[A]
- Definition Classes
- IterableOnceOps
- def min[B >: A](implicit ord: Ordering[B]): A
- Definition Classes
- IterableOnceOps
- def minBy[B](f: (A) => B)(implicit cmp: Ordering[B]): A
- Definition Classes
- IterableOnceOps
- def minByOption[B](f: (A) => B)(implicit cmp: Ordering[B]): Option[A]
- Definition Classes
- IterableOnceOps
- def minOption[B >: A](implicit ord: Ordering[B]): Option[A]
- Definition Classes
- IterableOnceOps
- final def mkString: String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(sep: String): String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(start: String, sep: String, end: String): String
- Definition Classes
- IterableOnceOps
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newSpecificBuilder: Builder[A, IndexedSeq[A]]
- Attributes
- protected
- Definition Classes
- IterableFactoryDefaults → IterableOps
- def nonEmpty: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def occCounts[B](sq: Seq[B]): Map[B, Int]
- Attributes
- protected[collection]
- Definition Classes
- SeqOps
- def orElse[A1 <: Int, B1 >: A](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
- Definition Classes
- PartialFunction
- def padTo[B >: A](len: Int, elem: B): IndexedSeq[B]
- Definition Classes
- SeqOps
- def partition(p: (A) => Boolean): (IndexedSeq[A], IndexedSeq[A])
- Definition Classes
- IterableOps
- def partitionMap[A1, A2](f: (A) => Either[A1, A2]): (IndexedSeq[A1], IndexedSeq[A2])
- Definition Classes
- IterableOps
- def patch[B >: A](from: Int, other: IterableOnce[B], replaced: Int): IndexedSeq[B]
- Definition Classes
- SeqOps
- def permutations: Iterator[IndexedSeq[A]]
- Definition Classes
- SeqOps
- def prepended[B >: A](elem: B): IndexedSeq[B]
- Definition Classes
- IndexedSeqOps → SeqOps
- def prependedAll[B >: A](prefix: IterableOnce[B]): IndexedSeq[B]
- Definition Classes
- SeqOps
- def product[B >: A](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- def reduce[B >: A](op: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeft[B >: A](op: (B, A) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeftOption[B >: A](op: (B, A) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceOption[B >: A](op: (B, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceRight[B >: A](op: (A, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceRightOption[B >: A](op: (A, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceToSize(sz: Int): Unit
Remove elements of this array at indices after 'sz'.
Remove elements of this array at indices after 'sz'.
- sz
the index position
- def reverse: IndexedSeq[A]
- Definition Classes
- IndexedSeqOps → SeqOps
- def reverseIterator: Iterator[A]
- Definition Classes
- IndexedSeqOps → SeqOps
- def reversed: Iterable[A]
- Attributes
- protected
- Definition Classes
- IndexedSeqOps → IterableOnceOps
- def runWith[U](action: (A) => U): (Int) => Boolean
- Definition Classes
- PartialFunction
- def sameElements[B >: A](that: IterableOnce[B]): Boolean
- Definition Classes
- SeqOps
- def scan[B >: A](z: B)(op: (B, B) => B): IndexedSeq[B]
- Definition Classes
- IterableOps
- def scanLeft[B](z: B)(op: (B, A) => B): IndexedSeq[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def scanRight[B](z: B)(op: (A, B) => B): IndexedSeq[B]
- Definition Classes
- IterableOps
- def search[B >: A](elem: B, from: Int, to: Int)(implicit ord: Ordering[B]): SearchResult
- Definition Classes
- IndexedSeqOps → SeqOps
- def search[B >: A](elem: B)(implicit ord: Ordering[B]): SearchResult
- Definition Classes
- IndexedSeqOps → SeqOps
- def segmentLength(p: (A) => Boolean, from: Int): Int
- Definition Classes
- SeqOps
- final def segmentLength(p: (A) => Boolean): Int
- Definition Classes
- SeqOps
- def shiftLeft(i: Int): Unit
Remove one element at the specified index position and shift the rest of the elements in the array one position to the left.
Remove one element at the specified index position and shift the rest of the elements in the array one position to the left.
- i
the index of the element to be removed
- def shiftLeft2(i: Int): Unit
Remove two elements starting at the specified index position and shift the rest of the elements in the array two positions to the left.
Remove two elements starting at the specified index position and shift the rest of the elements in the array two positions to the left.
- i
the index of the element to be removed
- def shiftRight(i: Int): Unit
Shift the elements by one position to the right starting at the index 'i'.
Shift the elements by one position to the right starting at the index 'i'. This will also automatically expand the array. The value will be repeated at 'i' and 'i+1' positions.
- i
the index position to start the shift
- def shiftRight2(i: Int): Unit
Shift the elements by two positions to the right starting at the index 'i'.
Shift the elements by two positions to the right starting at the index 'i'. This will also automatically expand the array. The value will be repeated at 'i', 'i+1' and 'i+2' positions.
- i
the index position to start the shift
- final def size: Int
- Definition Classes
- SeqOps → IterableOnceOps
- var size0: Int
Set the size of
ReArray
.Set the size of
ReArray
.- Attributes
- protected
- final def sizeCompare(that: Iterable[_]): Int
- Definition Classes
- SeqOps → IterableOps
- final def sizeCompare(otherSize: Int): Int
- Definition Classes
- SeqOps → IterableOps
- final def sizeIs: SizeCompareOps
- Definition Classes
- IterableOps
- Annotations
- @inline()
- def slice(from: Int, until: Int): IndexedSeq[A]
- Definition Classes
- IndexedSeqOps → IterableOps → IterableOnceOps
- def sliding(size: Int, step: Int): Iterator[IndexedSeq[A]]
- Definition Classes
- IterableOps
- def sliding(size: Int): Iterator[IndexedSeq[A]]
- Definition Classes
- IterableOps
- def sortBy[B](f: (A) => B)(implicit ord: Ordering[B]): IndexedSeq[A]
- Definition Classes
- SeqOps
- def sortInPlace[B >: A]()(implicit ord: Ordering[B]): ReArray.this.type
- Definition Classes
- IndexedSeqOps
- def sortInPlaceBy[B](f: (A) => B)(implicit ord: Ordering[B]): ReArray.this.type
- Definition Classes
- IndexedSeqOps
- def sortInPlaceWith(lt: (A, A) => Boolean): ReArray.this.type
- Definition Classes
- IndexedSeqOps
- def sortWith(lt: (A, A) => Boolean): IndexedSeq[A]
- Definition Classes
- SeqOps
- def sorted[B >: A](implicit ord: Ordering[B]): IndexedSeq[A]
- Definition Classes
- SeqOps
- def span(p: (A) => Boolean): (IndexedSeq[A], IndexedSeq[A])
- Definition Classes
- IterableOps → IterableOnceOps
- def splitAt(n: Int): (IndexedSeq[A], IndexedSeq[A])
- Definition Classes
- IterableOps → IterableOnceOps
- def startsWith[B >: A](that: IterableOnce[B], offset: Int): Boolean
- Definition Classes
- SeqOps
- def stepper[S <: Stepper[_]](implicit shape: StepperShape[A, S]): S with EfficientSplit
- Definition Classes
- IndexedSeqOps → IterableOnce
- def stringPrefix: String
- Attributes
- protected[this]
- Definition Classes
- IndexedSeq → Seq → Iterable
- def sum[B >: A](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- def swap(i: Int, j: Int): Unit
Swap two elements of this array.
Swap two elements of this array.
- i
the first element
- j
the second element
- Attributes
- protected
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tail: IndexedSeq[A]
- Definition Classes
- IterableOps
- def tails: Iterator[IndexedSeq[A]]
- Definition Classes
- IterableOps
- def take(n: Int): IndexedSeq[A]
- Definition Classes
- IndexedSeqOps → IterableOps → IterableOnceOps
- def takeRight(n: Int): IndexedSeq[A]
- Definition Classes
- IndexedSeqOps → IterableOps
- def takeWhile(p: (A) => Boolean): IndexedSeq[A]
- Definition Classes
- IterableOps → IterableOnceOps
- def tapEach[U](f: (A) => U): IndexedSeq[A]
- Definition Classes
- IterableOps → IterableOnceOps
- def to[C1](factory: Factory[A, C1]): C1
- Definition Classes
- IterableOnceOps
- def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- IterableOnceOps
- final def toBuffer[B >: A]: Buffer[B]
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def toIndexedSeq: IndexedSeq[A]
- Definition Classes
- IterableOnceOps
- final def toIterable: ReArray.this.type
- Definition Classes
- Iterable → IterableOps
- def toList: List[A]
- Definition Classes
- IterableOnceOps
- def toMap[K, V](implicit ev: <:<[A, (K, V)]): Map[K, V]
- Definition Classes
- IterableOnceOps
- def toSeq: Seq[A]
- Definition Classes
- IterableOnceOps
- def toSet[B >: A]: Set[B]
- Definition Classes
- IterableOnceOps
- def toString(): String
Convert 'this'
ReArray
to a string.Convert 'this'
ReArray
to a string.- Definition Classes
- ReArray → Seq → Function1 → Iterable → AnyRef → Any
- def toVector: Vector[A]
- Definition Classes
- IterableOnceOps
- def transpose[B](implicit asIterable: (A) => Iterable[B]): IndexedSeq[IndexedSeq[B]]
- Definition Classes
- IterableOps
- def unapply(a: Int): Option[A]
- Definition Classes
- PartialFunction
- def unzip[A1, A2](implicit asPair: (A) => (A1, A2)): (IndexedSeq[A1], IndexedSeq[A2])
- Definition Classes
- IterableOps
- def unzip3[A1, A2, A3](implicit asTriple: (A) => (A1, A2, A3)): (IndexedSeq[A1], IndexedSeq[A2], IndexedSeq[A3])
- Definition Classes
- IterableOps
- def update(idx: Int, elem: A): Unit
Set 'this' array's element at the 'i'- th index position.
Set 'this' array's element at the 'i'- th index position.
- idx
the given index
- elem
the value to assign
- Definition Classes
- ReArray → SeqOps
- def updated[B >: A](index: Int, elem: B): IndexedSeq[B]
- Definition Classes
- SeqOps
- def view: IndexedSeqView[A]
- Definition Classes
- IndexedSeqOps → SeqOps → IterableOps
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withFilter(p: (A) => Boolean): WithFilter[A, [_]IndexedSeq[_]]
- Definition Classes
- IterableOps
- def zip[B](that: IterableOnce[B]): IndexedSeq[(A, B)]
- Definition Classes
- IterableOps
- def zipAll[A1 >: A, B](that: Iterable[B], thisElem: A1, thatElem: B): IndexedSeq[(A1, B)]
- Definition Classes
- IterableOps
- def zipWithIndex: IndexedSeq[(A, Int)]
- Definition Classes
- IterableOps → IterableOnceOps
Deprecated Value Members
- final def /:[B](z: B)(op: (B, A) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldLeft instead of /:
- final def :\[B](z: B)(op: (A, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldRight instead of :\
- def aggregate[B](z: => B)(seqop: (B, A) => B, combop: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0)
aggregate
is not relevant for sequential collections. UsefoldLeft(z)(seqop)
instead.
- def companion: IterableFactory[[_]IndexedSeq[_]]
- Definition Classes
- IterableOps
- Annotations
- @deprecated @deprecatedOverriding() @inline()
- Deprecated
(Since version 2.13.0) Use iterableFactory instead
- final def copyToBuffer[B >: A](dest: Buffer[B]): Unit
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use
dest ++= coll
instead
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def hasDefiniteSize: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
- final def prefixLength(p: (A) => Boolean): Int
- Definition Classes
- SeqOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use segmentLength instead of prefixLength
- final def repr: IndexedSeq[A]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use coll instead of repr in a collection implementation, use the collection value itself from the outside
- def reverseMap[B](f: (A) => B): IndexedSeq[B]
- Definition Classes
- SeqOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .reverseIterator.map(f).to(...) instead of .reverseMap(f)
- def seq: ReArray.this.type
- Definition Classes
- Iterable
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Iterable.seq always returns the iterable itself
- final def toIterator: Iterator[A]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator instead of .toIterator
- final def toStream: Stream[A]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .to(LazyList) instead of .toStream
- final def toTraversable: Traversable[A]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use toIterable instead
- final def transform(f: (A) => A): ReArray.this.type
- Definition Classes
- SeqOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use
mapInPlace
on anIndexedSeq
instead
- final def union[B >: A](that: Seq[B]): IndexedSeq[B]
- Definition Classes
- SeqOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use
concat
instead
- def view(from: Int, until: Int): IndexedSeqView[A]
- Definition Classes
- IndexedSeqOps → IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .view.slice(from, until) instead of .view(from, until)