scala.collection.mutable

trait IndexedSeqLike

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

trait IndexedSeqLike[A, +Repr]
extends IndexedSeqLike[A, Repr]
A subtrait of scala.collection.IndexedSeq which represents sequences that can be mutated.
Since
2.8
Direct Known Subclasses:
ArrayBuffer, ArrayLike, GenericArray, IndexedSeq, ResizableArray

Method Summary
protected[this] override def thisCollection : IndexedSeq[A]
protected[this] override def toCollection (repr : Repr) : IndexedSeq[A]
abstract def update (idx : Int, elem : A) : Unit
override def view : IndexedSeqView[A, Repr]
Creates a view of this iterable @see Iterable.View
override def view (from : Int, until : Int) : IndexedSeqView[A, Repr]
A sub-sequence view starting at index `from` and extending up to (but not including) index `until`.
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
protected[this] override def thisCollection : IndexedSeq[A]
Overrides
IndexedSeqLike.thisCollection

protected[this] override def toCollection(repr : Repr) : IndexedSeq[A]
Overrides
IndexedSeqLike.toCollection

abstract def update(idx : Int, elem : A) : Unit

override def view : IndexedSeqView[A, Repr]
Creates a view of this iterable @see Iterable.View
Overrides
IndexedSeqLike.view

override def view(from : Int, until : Int) : IndexedSeqView[A, Repr]
A sub-sequence view starting at index `from` and extending up to (but not including) index `until`.
Parameters
from - The index of the first element of the slice
until - The index of the element following the slice
Notes
The difference between `view` and `slice` is that `view` produces a view of the current sequence, whereas `slice` produces a new sequence.
view(from, to) is equivalent to view.slice(from, to)
Overrides
IndexedSeqLike.view