The factory companion object that builds instances of class CC.
The factory companion object that builds instances of class CC.
(or its Iterable
superclass where class CC is not a Seq
.)
Applies a function f
to all elements of this collection.
Applies a function f
to all elements of this collection.
the type parameter describing the result of function f
.
This result will always be ignored. Typically U
is Unit
,
but this is not necessary.
the function that is applied for its side-effect to every element.
The result of function f
is discarded.
Selects the first element of this collection.
Selects the first element of this collection.
the first element of this collection.
Tests whether this collection is empty.
Tests whether this collection is empty.
true
if the collection contain no elements, false
otherwise.
[use case] Converts this collection of traversable collections into a collection in which all element collections are concatenated.
Converts this collection of traversable collections into a collection in which all element collections are concatenated.
the type of the elements of each traversable collection.
a new collection resulting from concatenating all element collections.
Converts this collection of traversable collections into a collection in which all element collections are concatenated.
Converts this collection of traversable collections into a collection in which all element collections are concatenated.
the type of the elements of each traversable collection.
an implicit conversion which asserts that the element
type of this collection is a Traversable
.
a new collection resulting from concatenating all element collections.
[use case] Applies a function f
to all elements of this collection.
Applies a function f
to all elements of this collection.
the function that is applied for its side-effect to every element.
The result of function f
is discarded.
The generic builder that builds instances of CC at arbitrary element types.
The generic builder that builds instances of CC at arbitrary element types.
Transposes this collection of traversable collections into a collection of collections.
Transposes this collection of traversable collections into a collection of collections.
the type of the elements of each traversable collection.
an implicit conversion which asserts that the
element type of this collection is a Traversable
.
a two-dimensional collection of collections which has as nth row the nth column of this collection.
"As of 2.9, transpose throws an exception if collections are not uniformly sized."
Converts this collection of pairs into two collections of the first and second half of each pair.
Converts this collection of pairs into two collections of the first and second half of each pair.
an implicit conversion which asserts that the element type of this collection is a pair.
a pair collections, containing the first, respectively second half of each element pair of this collection.
Converts this collection of triples into three collections of the first, second, and third element of each triple.
Converts this collection of triples into three collections of the first, second, and third element of each triple.
a triple collections, containing the first, second, respectively third member of each element triple of this collection.