scala.collection.mutable.ArrayOps

ofRef

class ofRef[T <: AnyRef] extends ArrayOps[T] with ArrayLike[T, Array[T]]

A class of ArrayOps for arrays containing reference types.

source: ArrayOps.scala
Inherited
  1. Hide All
  2. Show all
  1. ArrayOps
  2. ArrayLike
  3. IndexedSeqOptimized
  4. IndexedSeqOptimized
  5. IndexedSeqLike
  6. IndexedSeqLike
  7. SeqLike
  8. IterableLike
  9. TraversableLike
  10. TraversableOnce
  11. FilterMonadic
  12. HasNewBuilder
  13. Equals
  14. AnyRef
  15. Any
Visibility
  1. Public
  2. All

Instance constructors

  1. new ofRef(repr: Array[T])

Type Members

  1. class Elements extends BufferedIterator[A]

    The class of the iterator returned by the iterator method.

  2. type Self = Array[T]

    The type implementing this traversable

  3. class WithFilter extends FilterMonadic[A, Repr]

    A class supporting filtered operations.

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ++(that: TraversableOnce[T]): ArrayOps[T]

    [use case] Concatenates this mutable indexed sequence with the elements of a traversable collection.

  7. def ++[B >: T, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Array[T], B, That]): That

    Concatenates this mutable indexed sequence with the elements of a traversable collection.

  8. def +:(elem: T): ArrayOps[T]

    [use case] Prepends an element to this mutable indexed sequence

  9. def +:[B >: T, That](elem: B)(implicit bf: CanBuildFrom[Array[T], B, That]): That

    Prepends an element to this mutable indexed sequence

  10. def /:[B](z: B)(op: (B, T) ⇒ B): B

    Applies a binary operator to a start value and all elements of this mutable indexed sequence, going left to right.

  11. def :+(elem: T): ArrayOps[T]

    [use case] Appends an element to this mutable indexed sequence

  12. def :+[B >: T, That](elem: B)(implicit bf: CanBuildFrom[Array[T], B, That]): That

    Appends an element to this mutable indexed sequence

  13. def :\[B](z: B)(op: (T, B) ⇒ B): B

    Applies a binary operator to all elements of this mutable indexed sequence and a start value, going right to left.

  14. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  15. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  16. def addString(b: StringBuilder): StringBuilder

    Appends all elements of this mutable indexed sequence to a string builder.

  17. def addString(b: StringBuilder, sep: String): StringBuilder

    Appends all elements of this mutable indexed sequence to a string builder using a separator string.

  18. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Appends all elements of this mutable indexed sequence to a string builder using start, end, and separator strings.

  19. def apply(index: Int): T

    Selects an element by its index in the mutable indexed sequence.

  20. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  21. def canEqual(that: Any): Boolean

    Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind.

  22. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

  23. def collect[B](pf: PartialFunction[T, B]): ArrayOps[B]

    [use case] Builds a new collection by applying a partial function to all elements of this mutable indexed sequence on which the function is defined.

  24. def collect[B, That](pf: PartialFunction[T, B])(implicit bf: CanBuildFrom[Array[T], B, That]): That

    Builds a new collection by applying a partial function to all elements of this mutable indexed sequence on which the function is defined.

  25. def contains(elem: Any): Boolean

    Tests whether this mutable indexed sequence contains a given value as an element.

  26. def containsSlice[B](that: Seq[B]): Boolean

    Tests whether this mutable indexed sequence contains a given sequence as a slice.

  27. def copyToArray(xs: Array[T], start: Int, len: Int): Unit

    [use case] Copies elements of this mutable indexed sequence to an array.

  28. def copyToArray[B >: T](xs: Array[B], start: Int, len: Int): Unit

    Copies elements of this mutable indexed sequence to an array.

  29. def copyToArray(xs: Array[T]): Unit

    [use case] Copies values of this mutable indexed sequence to an array.

  30. def copyToArray[B >: T](xs: Array[B]): Unit

    Copies values of this mutable indexed sequence to an array.

  31. def copyToArray(xs: Array[T], start: Int): Unit

    [use case] Copies values of this mutable indexed sequence to an array.

  32. def copyToArray[B >: T](xs: Array[B], start: Int): Unit

    Copies values of this mutable indexed sequence to an array.

  33. def copyToBuffer[B >: T](dest: Buffer[B]): Unit

    Copies all elements of this mutable indexed sequence to a buffer.

  34. def corresponds[B](that: Seq[B])(p: (T, B) ⇒ Boolean): Boolean

    Tests whether every element of this mutable indexed sequence relates to the corresponding element of another sequence by satisfying a test predicate.

  35. def count(p: (T) ⇒ Boolean): Int

    Counts the number of elements in the mutable indexed sequence which satisfy a predicate.

  36. def deep: IndexedSeq[Any]

    Creates a possible nested IndexedSeq which consists of all the elements of this array.

  37. def deepEquals(that: Any): Boolean

  38. def deepMkString(sep: String): String

  39. def deepMkString(start: String, sep: String, end: String): String

  40. def deepToString(): String

  41. def diff(that: Seq[T]): ArrayOps[T]

    [use case] Computes the multiset difference between this mutable indexed sequence and another sequence.

  42. def diff[B >: T](that: Seq[B]): Array[T]

    Computes the multiset difference between this mutable indexed sequence and another sequence.

  43. def distinct: Array[T]

    Builds a new mutable indexed sequence from this mutable indexed sequence without any duplicate elements.

  44. def drop(n: Int): Array[T]

    Selects all elements except first n ones.

  45. def dropRight(n: Int): Array[T]

    Selects all elements except last n ones.

  46. def dropWhile(p: (T) ⇒ Boolean): Array[T]

    Drops longest prefix of elements that satisfy a predicate.

  47. def elements: Iterator[T]

  48. def endsWith[B](that: Seq[B]): Boolean

    Tests whether this mutable indexed sequence ends with the given sequence.

  49. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  50. def equals(that: Any): Boolean

    The equality method defined in AnyRef.

  51. def equalsWith[B](that: Seq[B])(f: (T, B) ⇒ Boolean): Boolean

    Tests whether every element of this mutable indexed sequence relates to the corresponding element of another sequence by satisfying a test predicate.

  52. def exists(p: (T) ⇒ Boolean): Boolean

    Tests whether a predicate holds for some of the elements of this mutable indexed sequence.

  53. def filter(p: (T) ⇒ Boolean): Array[T]

    Selects all elements of this mutable indexed sequence which satisfy a predicate.

  54. def filterNot(p: (T) ⇒ Boolean): Array[T]

    Selects all elements of this mutable indexed sequence which do not satisfy a predicate.

  55. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  56. def find(p: (T) ⇒ Boolean): Option[T]

    Finds the first element of the mutable indexed sequence satisfying a predicate, if any.

  57. def findIndexOf(p: (T) ⇒ Boolean): Int

    Returns index of the first element satisfying a predicate, or -1.

  58. def findLastIndexOf(p: (T) ⇒ Boolean): Int

    Returns index of the last element satisfying a predicate, or -1.

  59. def first: T

  60. def firstOption: Option[T]

    None if iterable is empty.

  61. def flatMap[B](f: (T) ⇒ Traversable[B]): ArrayOps[B]

    [use case] Builds a new collection by applying a function to all elements of this mutable indexed sequence and concatenating the results.

  62. def flatMap[B, That](f: (T) ⇒ Traversable[B])(implicit bf: CanBuildFrom[Array[T], B, That]): That

    Builds a new collection by applying a function to all elements of this mutable indexed sequence and concatenating the results.

  63. def flatten[U](implicit asArray: (T) ⇒ Array[U]): Array[U]

    Flattens a two-dimensional array by concatenating all its rows into a single array.

  64. def foldLeft[B](z: B)(op: (B, T) ⇒ B): B

    Applies a binary operator to a start value and all elements of this mutable indexed sequence, going left to right.

  65. def foldRight[B](z: B)(op: (T, B) ⇒ B): B

    Applies a binary operator to all elements of this mutable indexed sequence and a start value, going right to left.

  66. def forall(p: (T) ⇒ Boolean): Boolean

    Tests whether a predicate holds for all elements of this mutable indexed sequence.

  67. def foreach(f: (T) ⇒ Unit): Unit

    [use case] Applies a function f to all elements of this mutable indexed sequence.

  68. def foreach[U](f: (T) ⇒ U): Unit

    Applies a function f to all elements of this mutable indexed sequence.

  69. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  70. def groupBy[K](f: (T) ⇒ K): Map[K, Array[T]]

    Partitions this mutable indexed sequence into a map of mutable indexed sequences according to some discriminator function.

  71. def grouped(size: Int): Iterator[Array[T]]

    Partitions elements in fixed size mutable indexed sequences.

  72. def hasDefiniteSize: Boolean

    Tests whether this mutable indexed sequence is known to have a finite size.

  73. def hashCode(): Int

    Hashcodes for ArrayOps produce a value from the hashcodes of all the elements of the mutable indexed sequence.

  74. def head: T

    Selects the first element of this mutable indexed sequence.

  75. def headOption: Option[T]

    Optionally selects the first element.

  76. def indexOf(elem: T, from: Int): Int

    [use case] Finds index of first occurrence of some value in this mutable indexed sequence after or at some start index.

  77. def indexOf[B >: T](elem: B, from: Int): Int

    Finds index of first occurrence of some value in this mutable indexed sequence after or at some start index.

  78. def indexOf(elem: T): Int

    [use case] Finds index of first occurrence of some value in this mutable indexed sequence.

  79. def indexOf[B >: T](elem: B): Int

    Finds index of first occurrence of some value in this mutable indexed sequence.

  80. def indexOfSlice[B >: T](that: Seq[B], from: Int): Int

    Finds first index after or at a start index where this mutable indexed sequence contains a given sequence as a slice.

  81. def indexOfSlice[B >: T](that: Seq[B]): Int

    Finds first index where this mutable indexed sequence contains a given sequence as a slice.

  82. def indexWhere(p: (T) ⇒ Boolean, from: Int): Int

    Finds index of the first element satisfying some predicate after or at some start index.

  83. def indexWhere(p: (T) ⇒ Boolean): Int

    Finds index of first element satisfying some predicate.

  84. def indices: Range

    Produces the range of all indices of this sequence.

  85. def init: Array[T]

    Selects all elements except the last.

  86. def intersect(that: Seq[T]): ArrayOps[T]

    [use case] Computes the multiset intersection between this mutable indexed sequence and another sequence.

  87. def intersect[B >: T](that: Seq[B]): Array[T]

    Computes the multiset intersection between this mutable indexed sequence and another sequence.

  88. def isDefinedAt(idx: Int): Boolean

    Tests whether this mutable indexed sequence contains given index.

  89. def isEmpty: Boolean

    Tests whether this mutable indexed sequence is empty.

  90. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  91. def isTraversableAgain: Boolean

    Tests whether this mutable indexed sequence can be repeatedly traversed.

  92. def iterator: Iterator[T]

    Creates a new iterator over all elements contained in this iterable object.

  93. def last: T

    Selects the last element.

  94. def lastIndexOf(elem: T, end: Int): Int

    [use case] Finds index of last occurrence of some value in this mutable indexed sequence before or at a given end index.

  95. def lastIndexOf[B >: T](elem: B, end: Int): Int

    Finds index of last occurrence of some value in this mutable indexed sequence before or at a given end index.

  96. def lastIndexOf(elem: T): Int

    [use case] Finds index of last occurrence of some value in this mutable indexed sequence.

  97. def lastIndexOf[B >: T](elem: B): Int

    Finds index of last occurrence of some value in this mutable indexed sequence.

  98. def lastIndexOfSlice[B >: T](that: Seq[B], end: Int): Int

    Finds last index before or at a given end index where this mutable indexed sequence contains a given sequence as a slice.

  99. def lastIndexOfSlice[B >: T](that: Seq[B]): Int

    Finds last index where this mutable indexed sequence contains a given sequence as a slice.

  100. def lastIndexWhere(p: (T) ⇒ Boolean, end: Int): Int

    Finds index of last element satisfying some predicate before or at given end index.

  101. def lastIndexWhere(p: (T) ⇒ Boolean): Int

    Finds index of last element satisfying some predicate.

  102. def lastOption: Option[T]

    Optionally selects the last element.

  103. def length: Int

    The length of the mutable indexed sequence.

  104. def lengthCompare(len: Int): Int

    Compares the length of this mutable indexed sequence to a test value.

  105. def map[B](f: (T) ⇒ B): ArrayOps[B]

    [use case] Builds a new collection by applying a function to all elements of this mutable indexed sequence.

  106. def map[B, That](f: (T) ⇒ B)(implicit bf: CanBuildFrom[Array[T], B, That]): That

    Builds a new collection by applying a function to all elements of this mutable indexed sequence.

  107. def max: T

    [use case] Finds the largest element.

  108. def max[B >: T](implicit cmp: Ordering[B]): T

    Finds the largest element.

  109. def min: T

    [use case] Finds the smallest element.

  110. def min[B >: T](implicit cmp: Ordering[B]): T

    Finds the smallest element.

  111. def mkString: String

    Displays all elements of this mutable indexed sequence in a string.

  112. def mkString(sep: String): String

    Displays all elements of this mutable indexed sequence in a string using a separator string.

  113. def mkString(start: String, sep: String, end: String): String

    Displays all elements of this mutable indexed sequence in a string using start, end, and separator strings.

  114. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  115. def newBuilder: ofRef[T]

    Creates a new builder for this collection type.

  116. def nonEmpty: Boolean

    Tests whether the mutable indexed sequence is not empty.

  117. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  118. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  119. def padTo(len: Int, elem: T): ArrayOps[T]

    [use case] Appends an element value to this mutable indexed sequence until a given target length is reached.

  120. def padTo[B >: T, That](len: Int, elem: B)(implicit bf: CanBuildFrom[Array[T], B, That]): That

    Appends an element value to this mutable indexed sequence until a given target length is reached.

  121. def partition(p: (T) ⇒ Boolean): (Array[T], Array[T])

    Partitions this mutable indexed sequence in two mutable indexed sequences according to a predicate.

  122. def patch(from: Int, that: Seq[T], replaced: Int): ArrayOps[T]

    [use case] Produces a new mutable indexed sequence where a slice of elements in this mutable indexed sequence is replaced by another sequence.

  123. def patch[B >: T, That](from: Int, patch: Seq[B], replaced: Int)(implicit bf: CanBuildFrom[Array[T], B, That]): That

    Produces a new mutable indexed sequence where a slice of elements in this mutable indexed sequence is replaced by another sequence.

  124. def prefixLength(p: (T) ⇒ Boolean): Int

    Returns the length of the longest prefix whose elements all satisfy some predicate.

  125. def product: Int

    [use case] Multiplies up the elements of this collection.

  126. def product[B >: T](implicit num: Numeric[B]): B

    Multiplies up the elements of this collection.

  127. def projection: SeqView[T, Array[T]]

    returns a projection that can be used to call non-strict filter,map, and flatMap methods that build projections of the collection.

  128. def reduceLeft[B >: T](op: (B, T) ⇒ B): B

    Applies a binary operator to all elements of this mutable indexed sequence, going left to right.

  129. def reduceLeftOption[B >: T](op: (B, T) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this mutable indexed sequence, going left to right.

  130. def reduceRight[B >: T](op: (T, B) ⇒ B): B

    Applies a binary operator to all elements of this mutable indexed sequence, going right to left.

  131. def reduceRightOption[B >: T](op: (T, B) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this mutable indexed sequence, going right to left.

  132. val repr: Array[T]

    The collection of type mutable indexed sequence underlying this TraversableLike object.

  133. def reverse: Array[T]

    Returns new mutable indexed sequence wih elements in reversed order.

  134. def reverseIterator: Iterator[T]

    An iterator yielding elements in reversed order.

  135. def reverseMap[B](f: (T) ⇒ B): ArrayOps[B]

    [use case] Builds a new collection by applying a function to all elements of this mutable indexed sequence and collecting the results in reversed order.

  136. def reverseMap[B, That](f: (T) ⇒ B)(implicit bf: CanBuildFrom[Array[T], B, That]): That

    Builds a new collection by applying a function to all elements of this mutable indexed sequence and collecting the results in reversed order.

  137. def reversed: List[T]

  138. def reversedElements: Iterator[T]

  139. def sameElements(that: Iterable[T]): Boolean

    [use case] Checks if the other iterable collection contains the same elements in the same order as this mutable indexed sequence.

  140. def sameElements[B >: T](that: Iterable[B]): Boolean

    Checks if the other iterable collection contains the same elements in the same order as this mutable indexed sequence.

  141. def scanLeft[B, That](z: B)(op: (B, T) ⇒ B)(implicit bf: CanBuildFrom[Array[T], B, That]): That

    Produces a collection containing cummulative results of applying the operator going left to right.

  142. def scanRight[B, That](z: B)(op: (T, B) ⇒ B)(implicit bf: CanBuildFrom[Array[T], B, That]): That

    Produces a collection containing cummulative results of applying the operator going right to left.

  143. def segmentLength(p: (T) ⇒ Boolean, from: Int): Int

    Computes length of longest segment whose elements all satisfy some predicate.

  144. def size: Int

    The size of this mutable indexed sequence, equivalent to length.

  145. def slice(from: Int, until: Int): Array[T]

    Selects an interval of elements.

  146. def sliding[B >: T](size: Int, step: Int): Iterator[Array[T]]

  147. def sliding[B >: T](size: Int): Iterator[Array[T]]

    Groups elements in fixed size blocks by passing a "sliding window" over them (as opposed to partitioning them, as is done in grouped.

  148. def sortBy[B](f: (T) ⇒ B)(implicit ord: Ordering[B]): Array[T]

    Sorts this ArrayOps according to the Ordering which results from transforming an implicitly given Ordering with a transformation function.

  149. def sortWith(lt: (T, T) ⇒ Boolean): Array[T]

    Sorts this mutable indexed sequence according to a comparison function.

  150. def sorted[B >: T](implicit ord: Ordering[B]): Array[T]

    Sorts this mutable indexed sequence according to an Ordering.

  151. def span(p: (T) ⇒ Boolean): (Array[T], Array[T])

    Splits this mutable indexed sequence into a prefix/suffix pair according to a predicate.

  152. def splitAt(n: Int): (Array[T], Array[T])

    Splits this mutable indexed sequence into two at a given position.

  153. def startsWith[B](that: Seq[B], offset: Int): Boolean

    Tests whether this mutable indexed sequence contains the given sequence at a given index.

  154. def startsWith[B](that: Seq[B]): Boolean

    Tests whether this mutable indexed sequence starts with the given sequence.

  155. def stringPrefix: String

    Defines the prefix of this object's toString representation.

  156. def sum: Int

    [use case] Sums up the elements of this collection.

  157. def sum[B >: T](implicit num: Numeric[B]): B

    Sums up the elements of this collection.

  158. def synchronized[T0](arg0: T0): T0

  159. def tail: Array[T]

    Selects all elements except the first.

  160. def take(n: Int): Array[T]

    Selects first n elements.

  161. def takeRight(n: Int): Array[T]

    Selects last n elements.

  162. def takeWhile(p: (T) ⇒ Boolean): Array[T]

    Takes longest prefix of elements that satisfy a predicate.

  163. def thisCollection: WrappedArray[T]

    The underlying collection seen as an instance of ArrayOps.

  164. def toArray: Array[T]

    [use case] Converts this mutable indexed sequence to an array.

  165. def toArray[U >: T](implicit arg0: ClassManifest[U]): Array[U]

    Converts this mutable indexed sequence to an array.

  166. def toBuffer[B >: T]: Buffer[B]

    Converts this mutable indexed sequence to a mutable buffer.

  167. def toCollection(repr: Array[T]): WrappedArray[T]

    A conversion from collections of type Repr to ArrayOps objects.

  168. def toIndexedSeq[B >: T]: IndexedSeq[B]

    Converts this mutable indexed sequence to an indexed sequence.

  169. def toIterable: Iterable[T]

    Converts this mutable indexed sequence to an iterable collection.

  170. def toIterator: Iterator[T]

    Returns an Iterator over the elements in this mutable indexed sequence.

  171. def toList: List[T]

    Converts this mutable indexed sequence to a list.

  172. def toMap[T, U](implicit ev: <:<[T, (T, U)]): Map[T, U]

    Converts this mutable indexed sequence to a map.

  173. def toSeq: Seq[T]

    Converts this mutable indexed sequence to a sequence.

  174. def toSet[B >: T]: Set[B]

    Converts this mutable indexed sequence to a set.

  175. def toStream: Stream[T]

    Converts this mutable indexed sequence to a stream.

  176. def toString(): String

    Converts this mutable indexed sequence to a string.

  177. def toTraversable: Traversable[T]

    Converts this mutable indexed sequence to an unspecified Traversable.

  178. def transpose[U](implicit asArray: (T) ⇒ Array[U]): Array[Array[U]]

    Transposes a two dimensional array.

  179. def union(that: Seq[T]): ArrayOps[T]

    [use case] Produces a new sequence which contains all elements of this mutable indexed sequence and also all elements of a given sequence.

  180. def union[B >: T, That](that: Seq[B])(implicit bf: CanBuildFrom[Array[T], B, That]): That

    Produces a new sequence which contains all elements of this mutable indexed sequence and also all elements of a given sequence.

  181. def update(index: Int, elem: T): Unit

    Replaces element at given index with a new value.

  182. def updated(index: Int, elem: T): ArrayOps[T]

    [use case] A copy of this mutable indexed sequence with one single replaced element.

  183. def updated[B >: T, That](index: Int, elem: B)(implicit bf: CanBuildFrom[Array[T], B, That]): That

    A copy of this mutable indexed sequence with one single replaced element.

  184. def view(from: Int, until: Int): IndexedSeqView[T, Array[T]]

    A sub-sequence view starting at index from and extending up to (but not including) index until.

  185. def view: IndexedSeqView[T, Array[T]]

    Creates a view of this iterable @see Iterable.

  186. def wait(): Unit

  187. def wait(arg0: Long, arg1: Int): Unit

  188. def wait(arg0: Long): Unit

  189. def withFilter(p: (T) ⇒ Boolean): FilterMonadic[T, Array[T]]

    Creates a non-strict filter of this mutable indexed sequence.

  190. def zip[B](that: Iterable[B]): ArrayOps[(T, B)]

    [use case] Returns a mutable indexed sequence formed from this mutable indexed sequence and another iterable collection by combining corresponding elements in pairs.

  191. def zip[A1 >: T, B, That](that: Iterable[B])(implicit bf: CanBuildFrom[Array[T], (A1, B), That]): That

    Returns a mutable indexed sequence formed from this mutable indexed sequence and another iterable collection by combining corresponding elements in pairs.

  192. def zipAll[B](that: Iterable[B], thisElem: T, thatElem: B): ArrayOps[(T, B)]

    [use case] Returns a mutable indexed sequence formed from this mutable indexed sequence and another iterable collection by combining corresponding elements in pairs.

  193. def zipAll[B, A1 >: T, That](that: Iterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Array[T], (A1, B), That]): That

    Returns a mutable indexed sequence formed from this mutable indexed sequence and another iterable collection by combining corresponding elements in pairs.

  194. def zipWithIndex: ArrayOps[(T, Int)]

    [use case] Zips this mutable indexed sequence with its indices.

  195. def zipWithIndex[A1 >: T, That](implicit bf: CanBuildFrom[Array[T], (A1, Int), That]): That

    Zips this mutable indexed sequence with its indices.