The class name of this collection.
The class name of this collection. To be used for converting to string. Collections generally print like this:
<className>(elem_1, ..., elem_n)
Copy all elements of this collection to array xs
, starting at start
.
Fold left
Fold right
Apply f
to each element for tis side effects
The first element of the collection.
The index of the first element in this collection for which p
holds.
Is the collection empty?
The number of elements in this collection, if it can be cheaply computed, -1 otherwise.
The number of elements in this collection, if it can be cheaply computed, -1 otherwise. Cheaply usually means: Not requiring a collection traversal.
A string showing all elements of this collection, separated by string sep
.
The number of elements in this collection.
The number of elements in this collection. Does not terminate for infinite collections.
Given a collection factory fi
for collections of type constructor C
,
convert this collection to one of type C[A]
.
Given a collection factory fi
for collections of type constructor C
,
convert this collection to one of type C[A]
. Example uses:
xs.to(List) xs.to(ArrayBuffer)
Convert collection to array.
A view representing the elements of this collection.
Operations over iterables. No operation defined here is generic in the type of the underlying collection.