IterableOnce (original) (raw)
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
Source
Graph
Supertypes
Known subtypes
trait Map[K, V]
class ::[A]
trait Map[K, V]
trait Map[K, V]
class Id[K, V]
class Id[A]
class Id[A]
class Map[A, B]
class Map[A, B]
class Map[A, B]
class Zip[A, B]
trait Map[K, V]
trait MapOps[K, V, CC, C]
trait MapOps[K, V, CC, C]
trait MapOps[K, V, CC, C]
Show all