scala.collection.generic

trait MutableVectorTemplate

[source: scala/collection/generic/MutableVectorTemplate.scala]

trait MutableVectorTemplate[A, +This <: MutableVectorTemplate[A, This] with Vector[A]]
extends VectorTemplate[A, This]
A subtrait of collection.Vector which represents sequences that can be mutated.
Direct Known Subclasses:
MutableVectorViewTemplate, Vector

Method Summary
abstract def update (idx : Int, elem : A) : Unit
override def view : MutableVectorView[A, This]
Creates a view of this iterable @see Iterable.View
override def view (from : Int, until : Int) : MutableVectorView[A, This]
A sub-sequence view starting at index `from` and extending up to (but not including) index `until`.
Methods inherited from VectorTemplate
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, equals
Methods inherited from SequenceTemplate
length (abstract), apply (abstract), size, isDefinedAt, zipAll, prefixLength, indexWhere, findIndexOf, indexOf, indexOf, lastIndexOf, lastIndexOf, lastIndexWhere, reversedElements, startsWith, indexOfSeq, indexOfSeq, lastIndexOfSeq, lastIndexOfSeq, contains, union, diff, intersect, removeDuplicates, patch, padTo, toSequence, indices, toString, sortWith, findLastIndexOf, slice, equalsWith, containsSlice, projection
Methods inherited from IterableTemplate
elements, toIterable, toStream, first, firstOption, toSeq
Methods inherited from TraversableTemplate
newBuilder (abstract), thisCollection, nonEmpty, hasDefiniteSize, ++, ++, map, flatMap, filter, filterMap, filterNot, remove, partition, groupBy, count, /:, :\, reduceLeftOption, reduceRightOption, headOption, lastOption, copyToBuffer, copyToArray, toArray, toList, toSet, mkString, mkString, mkString, addString, addString, addString, stringPrefix
Methods inherited from AnyRef
getClass, hashCode, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
abstract def update(idx : Int, elem : A) : Unit

override def view : MutableVectorView[A, This]
Creates a view of this iterable @see Iterable.View
Overrides
VectorTemplate.view

override def view(from : Int, until : Int) : MutableVectorView[A, This]
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
VectorTemplate.view