scala.collection.TraversableViewLike

trait Sliced

[source: scala/collection/TraversableViewLike.scala]

trait Sliced
extends Transformed[A]
pre: from >= 0
Direct Known Subclasses:
IterableViewLike.Sliced

Value Summary
protected[this] abstract val from : Int
protected[this] abstract val until : Int
Values and Variables inherited from Transformed
underlying
Method Summary
override def foreach [C](f : (A) => C) : Unit
Apply a function f to all elements of this traversable object.
override def slice (from1 : Int, until1 : Int) : This
A sub-traversable starting at index `from` and extending up to (but not including) index `until`.
override def stringPrefix : java.lang.String
Defines the prefix of this object's toString representation.
Methods inherited from TraversableViewLike
newBuilder, force, newAppended, newMapped, newFlatMapped, newFiltered, newSliced, newDroppedWhile, newTakenWhile, ++, ++, map, flatMap, filter, init, drop, take, dropWhile, takeWhile, span, splitAt
Methods inherited from Traversable
companion
Methods inherited from GenericTraversableTemplate
genericBuilder, unzip, flatten, transpose
Methods inherited from TraversableLike
repr, thisCollection, toCollection, isEmpty, nonEmpty, size, hasDefiniteSize, filterNot, partialMap, remove, partition, groupBy, forall, exists, count, find, foldLeft, /:, foldRight, :\, reduceLeft, reduceLeftOption, reduceRight, reduceRightOption, sum, product, min, max, head, headOption, tail, last, lastOption, copyToBuffer, copyToArray, copyToArray, toArray, toList, toIterable, toSeq, toIndexedSeq, toStream, toSet, mkString, mkString, mkString, addString, addString, addString, toString, view, view, withFilter
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Value Details
protected[this] abstract val from : Int

protected[this] abstract val until : Int

Method Details
override def foreach[C](f : (A) => C) : Unit
Apply a function f to all elements of this traversable object.
Parameters
f - A function that is applied for its side-effect to every element. The result (of arbitrary type U) of function `f` is discarded.
Notes
This method underlies the implementation of most other bulk operations. It's important to implement this method in an efficient way.

override def stringPrefix : java.lang.String
Defines the prefix of this object's toString representation.

override def slice(from1 : Int, until1 : Int) : This
A sub-traversable 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 traversable is ordered
Parameters
from - The index of the first element of the returned subsequence
until - The index of the element following the returned subsequence