trait
IterableLike
[
+A,
+C
]
extends
FromIterable
with
IterableOps
with
IterableMonoTransforms
with
IterablePolyTransforms
Base trait for Iterable operations
VarianceNote
We require that for all child classes of Iterable the variance of
the child class and the variance of the C
parameter passed to IterableLike
are the same. We cannot express this since we lack variance polymorphism. That's
why we have to resort at some places to write C[A @uncheckedVariance]
.
Constructors
Members
protected
def
fromIterableWithSameElemType
(
coll:
Iterable
[
A
]
)
: strawman$collections$CollectionStrawMan6$IterableLike$$C
[
A
]
Create a collection of type C[A]
from the elements of coll
, which has
the same element type as this collection. Overridden in StringOps and ArrayOps.
Create a collection of type C[A]
from the elements of coll
, which has
the same element type as this collection. Overridden in StringOps and ArrayOps.