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
.)
Selects the first element of this collection.
Selects the first element of this collection.
the first element of this collection.
if the collection is empty.
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 formed by the elements of these traversable collections.
Converts this collection of traversable collections into a collection formed by the elements of these traversable collections.
The resulting collection's type will be guided by the static type of collection. For example:
val xs = List(Set(1, 2, 3), Set(1, 2, 3)) // xs == List(1, 2, 3, 1, 2, 3) val ys = Set(List(1, 2, 3), List(3, 2, 1)) // ys == Set(1, 2, 3)
the type of the elements of each traversable collection.
a new collection resulting from concatenating all element collections.
[use case]
the function that is applied for its side-effect to every element.
The result of function f
is discarded.
Returns string formatted according to given format
string.
Returns string formatted according to given format
string.
Format strings are as for String.format
(@see java.lang.String.format).
The generic builder that builds instances of CC at arbitrary element types.
The builder that builds instances of type CC[A]
The builder that builds instances of type CC[A]
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.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
if all collections in this collection are not of the same size.
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.
the type of the first half of the element pairs
the type of the second half of the element pairs
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.
the type of the first member of the element triples
the type of the second member of the element triples
the type of the third member of the element triples
an implicit conversion which asserts that the element type of this collection is a triple.
a triple collections, containing the first, second, respectively third member of each element triple of this collection.
A template class for companion objects of
collection classes that represent an unconstrained higher-kinded type.regular
The type of the collection elements.
The type constructor representing the collection class.
2.8