concat
Call Signature
concat<
T
,U
>(xs1
,xs2
):IteratorObject
<T
|U
,void
>
Creates a generator that concatenates the given Traversables to each other in the given order.
Example
collect(concat([1, 2], [3, 4], [5]))// => [1, 2, 3, 4, 5]
Alternatives
Type Parameters
• T
The element type.
• U
Parameters
xs1
Iterable
<T
>
xs2
Iterable
<U
>
Returns
IteratorObject
<T
| U
, void
>
A concatenation generator.
Call Signature
concat<
T
,U
,V
>(xs1
,xs2
,xs3
):IteratorObject
<T
|U
|V
,void
>
Creates a generator that concatenates the given Traversables to each other in the given order.
Example
collect(concat([1, 2], [3, 4], [5]))// => [1, 2, 3, 4, 5]
Alternatives
Type Parameters
• T
The element type.
• U
• V
Parameters
xs1
Iterable
<T
>
xs2
Iterable
<U
>
xs3
Iterable
<V
>
Returns
IteratorObject
<T
| U
| V
, void
>
A concatenation generator.
Call Signature
concat<
T
>(…xs
):IteratorObject
<T
,void
>
Creates a generator that concatenates the given Traversables to each other in the given order.
Example
collect(concat([1, 2], [3, 4], [5]))// => [1, 2, 3, 4, 5]
Alternatives
Type Parameters
• T
The element type.
Parameters
xs
…Iterable
<T
>[]
The Iterables to concatenate.
Returns
IteratorObject
<T
, void
>
A concatenation generator.