scala.collection.IterableOnce
See theIterableOnce companion object
A template trait for collections which can be traversed either once only or one or more times.
Note: IterableOnce
does not extend IterableOnceOps. This is different than the general design of the collections library, which uses the following pattern:
trait Seq extends Iterable with SeqOps
trait SeqOps extends IterableOps
trait IndexedSeq extends Seq with IndexedSeqOps
trait IndexedSeqOps extends SeqOps
The goal is to provide a minimal interface without any sequential operations. This allows third-party extension like Scala parallel collections to integrate at the level of IterableOnce without inheriting unwanted implementations.
Attributes
- Companion
- object
- Source
- IterableOnce.scala
- Graph
-
- Supertypes
-
class Any
- Known subtypes
-
trait Iterable[A]trait Iterable[A]class IntMap[T]class LongMap[T]trait Seq[A]class AbstractSeq[A]class ArraySeq[A]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnitclass LazyList[A]class List[A]class ::[A]object Nil.typeclass NumericRange[T]class Exclusive[T]class Inclusive[T]class Queue[A]class Rangeclass Exclusiveclass Inclusiveclass Stream[A]class Cons[A]object Empty.typeclass Vector[A]class WrappedStringtrait IndexedSeq[A]trait LinearSeq[A]trait Set[A]class AbstractSet[A]class ImmutableKeySetclass BitSetclass BitSet1class BitSet2class BitSetNclass HashSet[A]class ListSet[A]class Set1[A]class Set2[A]class Set3[A]class Set4[A]class ImmutableKeySortedSetclass TreeSet[A]class ValueSettrait SortedSet[A]trait Iterable[A]class AbstractIterable[A]class PriorityQueue[A]class LongMap[V]class SystemPropertiestrait Seq[A]class AbstractSeq[A]class AbstractBuffer[A]class ArrayBuffer[A]class ArrayDeque[A]class Queue[A]class Stack[A]class ListBuffer[A]class UnrolledBuffer[T]class ArraySeq[T]class ofBooleanclass ofByteclass ofCharclass ofDoubleclass ofFloatclass ofIntclass ofLongclass ofRef[T]class ofShortclass ofUnitclass StringBuildertrait Buffer[A]trait IndexedBuffer[A]trait IndexedSeq[T]class AnyAccumulator[A]class DoubleAccumulatorclass IntAccumulatorclass LongAccumulatortrait Set[A]class AbstractSet[A]class BitSetclass HashSet[A]class LinkedHashSet[A]class TreeSet[A]trait SortedSet[A]class AbstractIterable[A]class AbstractSeq[A]class AbstractSet[A]class AbstractView[A]class AbstractSeqView[A]class AbstractIndexedSeqView[A]class ArrayBufferView[A]class Slice[A]class StringViewclass Id[A]class Id[A]class Reverse[A]class Reverse[A]class Appended[A]class Appended[A]class Appended[A]class Concat[A]class Concat[A]class Concat[A]class Drop[A]class Drop[A]class Drop[A]class DropRight[A]class DropRight[A]class DropRight[A]class DropWhile[A]class Elems[A]object Empty.typeclass Fill[A]class Filter[A]class Iterate[A]class PadTo[A]class Prepended[A]class Prepended[A]class Prepended[A]class Single[A]class Tabulate[A]class Take[A]class Take[A]class Take[A]class TakeRight[A]class TakeRight[A]class TakeRight[A]class TakeWhile[A]class Updated[A]class ZipWithIndex[A]trait Seq[A]trait IndexedSeq[A]trait LinearSeq[A]trait Set[A]trait SortedSet[A]trait BitSettrait View[A]trait SeqView[A]trait IndexedSeqView[A]trait BitSetOps[C]trait Iterator[A]class AbstractIterator[A]class GroupedIterator[B]class BufferedLineIteratorclass LineIteratorclass MatchIteratortrait BufferedIterator[A]class Sourceclass BufferedSourceclass Option[A]object None.typeclass Some[A]
Members list
In this article