Function: concatConcur()
concatConcur<
Value
>(...iterables
):ConcurIterable
<Value
>
Returns a concur iterable that contains the values of each iterable in
iterables
.
Like Array.prototype.concat
, but for concur iterables.
Type Parameters
• Value
Parameters
• ...iterables: readonly (ConcurIterable
<Value
> | Iterable
<Value
, any
, any
> | AsyncIterable
<Value
, any
, any
>)[]
Returns
ConcurIterable
<Value
>
Example
console.log(
await pipe(
concatConcur(asAsync([1, 2]), [3, `sloth`, 5], asConcur([6, 7])),
reduceConcur(toArray()),
),
)
//=> [ 1, 2, 3, 'sloth', 5, 6, 7 ]