scala.collection.mutable.IndexedSeqView

trait Sliced

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

trait Sliced
extends Transformed[A] with Sliced
pre: from >= 0
Values and Variables inherited from Sliced
from (abstract), until (abstract)
Values and Variables inherited from Transformed
underlying
Method Summary
override def slice (from1 : Int, until1 : Int) : Transformed[A]
A sub-iterable starting at index `from` and extending up to (but not including) index `until`.
override def update (idx : Int, elem : A) : Unit
Methods inherited from Sliced
foreach
Methods inherited from Sliced
length, apply
Methods inherited from Sliced
iterator
Methods inherited from Sliced
stringPrefix
Methods inherited from IndexedSeqView
newFiltered, newSliced, newDroppedWhile, newTakenWhile, newReversed, filter, init, drop, take, dropWhile, takeWhile, span, splitAt, reverse
Methods inherited from IndexedSeqViewLike
newAppended, newMapped, newFlatMapped, newZipped, newZippedAll, newPatched
Methods inherited from SeqViewLike
patch, padTo
Methods inherited from IterableViewLike
zip, zipWithIndex, zipAll
Methods inherited from TraversableViewLike
newBuilder, force, ++, ++, map, flatMap
Methods inherited from IndexedSeq
companion
Methods inherited from IndexedSeqLike
thisCollection, toCollection, isEmpty, forall, exists, find, foldLeft, foldRight, reduceLeft, reduceRight, head, tail, last, takeRight, dropRight, sameElements, copyToArray, lengthCompare, segmentLength, indexWhere, lastIndexWhere, reverseIterator, startsWith, endsWith, view, view
Methods inherited from SeqLike
size, isDefinedAt, prefixLength, indexWhere, findIndexOf, indexOf, indexOf, lastIndexOf, lastIndexOf, lastIndexWhere, reverseMap, reversedElements, startsWith, indexOfSeq, indexOfSeq, lastIndexOfSeq, lastIndexOfSeq, contains, union, diff, intersect, removeDuplicates, updated, +:, :+, sortWith, sortWith, sortBy, toSeq, indices, hashCode, equals, toString, findLastIndexOf, equalsWith, containsSlice, projection
Methods inherited from IterableLike
elements, toIterable, toStream, canEqual, first, firstOption
Methods inherited from GenericTraversableTemplate
genericBuilder, unzip, flatten, transpose
Methods inherited from TraversableLike
repr, nonEmpty, hasDefiniteSize, 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, withFilter
Methods inherited from PartialFunction
orElse, andThen
Methods inherited from Function1
compose
Methods inherited from AnyRef
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
override def update(idx : Int, elem : A) : Unit
Overrides
Transformed.update

override def slice(from1 : Int, until1 : Int) : Transformed[A]
A sub-iterable starting at index `from` and extending up to (but not including) index `until`.
Notes
c.slice(from, to) is equivalent to (but possibly more efficient than) c.drop(from).take(to - from)
Might return different results for different runs, unless this iterable is ordered
Parameters
from - The index of the first element of the returned subsequence
until - The index of the element following the returned subsequence