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:
transparent trait SeqOps[+A, +CC[_], +C] extends Any
trait Seq[+A] extends Iterable[A] with SeqOps[A, Seq, Seq[A]]
transparent trait IndexedSeqOps[+A, +CC[_], +C] extends Any with SeqOps[A, CC, C]
trait IndexedSeq[+A] extends Seq[A] with IndexedSeqOps[A, IndexedSeq, IndexedSeq[A]]
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
Reset zoom Hide graph Show graph
Supertypes
Known subtypes
Self type
Members list
Attributes
Returns
an iterator over all elements of this collection
Source
IterableOnce.scala
The number of elements in this collection, if it can be cheaply computed, -1 otherwise. Cheaply usually means: Not requiring a collection traversal.
The number of elements in this collection, if it can be cheaply computed, -1 otherwise. Cheaply usually means: Not requiring a collection traversal.
Attributes
Source
IterableOnce.scala
Type parameters
S
the type of the returned Stepper, determined by the implicit StepperShape
Value parameters
shape
the StepperShape that determines the concrete Stepper subtype to return
Attributes
Returns
a Stepper over the elements of this collection, using a primitive-typed Stepper subclass for Int/Long/Double (and related) element types
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.foldLeft instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.foldRight instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.collectFirst(...) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.copyToBuffer(...) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.count(...) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.exists(...) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.filter(...) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.find instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.flatMap instead or consider requiring an Iterable
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.fold instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.foldLeft instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.foldRight instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.forall(...) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.foreach(...) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.isEmpty instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.map instead or consider requiring an Iterable
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.max instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.maxBy(...) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.min instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.minBy(...) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.mkString instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.mkString instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.mkString instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.nonEmpty instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.product instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.reduce(...) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.reduceLeft(...) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.reduceLeftOption(...) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.reduceOption(...) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.reduceRight(...) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.reduceRightOption(...) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.sameElements instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.size instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.sum instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.to(factory) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.toArray
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.to(ArrayBuffer) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.toIndexedSeq instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.to(Iterable) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.to(List) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.to(Map) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.to(Seq) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.to(Set) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.to(LazyList) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.to(Iterable) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.to(Vector) instead
Source
IterableOnce.scala
Attributes
Deprecated
[Since version 2.13.0] Use .iterator.withFilter(...) instead
Source
IterableOnce.scala
Generated with
Copyright (c) 2002-2026, LAMP/EPFL
Copyright (c) 2002-2026, LAMP/EPFL