scala.collection.mutable

trait ArrayLike

[source: scala/collection/mutable/ArrayLike.scala]

trait ArrayLike[A, +Repr]
extends IndexedSeqLike[A, Repr]
A subtrait of collection.IndexedSeq which represents sequences that can be mutated.
Since
2.8
Direct Known Subclasses:
ArrayOps, ArrayOps.ofRef, ArrayOps.ofByte, ArrayOps.ofShort, ArrayOps.ofChar, ArrayOps.ofInt, ArrayOps.ofLong, ArrayOps.ofFloat, ArrayOps.ofDouble, ArrayOps.ofBoolean, ArrayOps.ofUnit, WrappedArray

Method Summary
def deep : IndexedSeq[Any]
Creates a possible nested IndexedSeq which consists of all the elements of this array. If the elements are arrays themselves, the `deep' transformation is applied recursively to them. The stringPrefix of the IndexedSeq is "Array", hence the IndexedSeq prints like an array with all its elements shown, and the same recursively for any subarrays. Example: Array(Array(1, 2), Array(3, 4)).deep.toString prints: Array(Array(1, 2), Array(3, 4))
final def deepEquals (that : Any) : Boolean
final def deepMkString (sep : java.lang.String) : java.lang.String
final def deepMkString (start : java.lang.String, sep : java.lang.String, end : java.lang.String) : java.lang.String
final def deepToString : java.lang.String
Methods inherited from IndexedSeqLike
update (abstract), thisCollection, toCollection, view, view
Methods inherited from IndexedSeqLike
iterator, isEmpty, foreach, forall, exists, find, foldLeft, foldRight, reduceLeft, reduceRight, zip, zipWithIndex, slice, head, tail, last, init, take, drop, takeRight, dropRight, splitAt, takeWhile, dropWhile, span, sameElements, copyToArray, lengthCompare, segmentLength, indexWhere, lastIndexWhere, reverse, reverseIterator, startsWith, endsWith
Methods inherited from SeqLike
length (abstract), apply (abstract), size, isDefinedAt, prefixLength, indexWhere, findIndexOf, indexOf, indexOf, lastIndexOf, lastIndexOf, lastIndexWhere, reverseMap, reversedElements, startsWith, indexOfSeq, indexOfSeq, lastIndexOfSeq, lastIndexOfSeq, contains, union, diff, intersect, removeDuplicates, patch, updated, +:, :+, padTo, sortWith, sortWith, sortBy, toSeq, indices, hashCode, equals, toString, findLastIndexOf, equalsWith, containsSlice, projection
Methods inherited from IterableLike
elements, toIterable, zipAll, toStream, canEqual, first, firstOption
Methods inherited from TraversableLike
newBuilder (abstract), repr, nonEmpty, hasDefiniteSize, ++, ++, map, flatMap, filter, filterNot, partialMap, remove, partition, groupBy, count, /:, :\, reduceLeftOption, reduceRightOption, sum, product, min, max, headOption, lastOption, copyToBuffer, copyToArray, toArray, toList, toIndexedSeq, toSet, mkString, mkString, mkString, addString, addString, addString, stringPrefix, withFilter
Methods inherited from AnyRef
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def deep : IndexedSeq[Any]
Creates a possible nested IndexedSeq which consists of all the elements of this array. If the elements are arrays themselves, the `deep' transformation is applied recursively to them. The stringPrefix of the IndexedSeq is "Array", hence the IndexedSeq prints like an array with all its elements shown, and the same recursively for any subarrays. Example: Array(Array(1, 2), Array(3, 4)).deep.toString prints: Array(Array(1, 2), Array(3, 4))

@deprecated("use deep.toString instead")

final def deepToString : java.lang.String

@deprecated("use deep.mkString instead")

final def deepMkString(start : java.lang.String, sep : java.lang.String, end : java.lang.String) : java.lang.String

@deprecated("use deep.mkString instead")

final def deepMkString(sep : java.lang.String) : java.lang.String

@deprecated("use array1.deep.equals(array2.deep) instead")

final def deepEquals(that : Any) : Boolean