toArray<A>(source): A[]
Collects all elements into an array.
Do not use on infinite iterables without take first.
Type Parametersβ
Element type
Parametersβ
source: Iterable<A>β
The iterable to collect
Returns: A[]β
An array of all elements
2.4.0