Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 956 Bytes

polyethylene.polyasynciterable.flat.md

File metadata and controls

30 lines (17 loc) · 956 Bytes

Home > polyethylene > PolyAsyncIterable > flat

PolyAsyncIterable.flat() method

Return an iteration of the yielded elements of the sub-iterables.

Signature:

flat<U>(this: PolyAsyncIterable<Iterable<U> | AsyncIterable<U>>): PolyAsyncIterable<U>;

Parameters

Parameter Type Description
this PolyAsyncIterable<Iterable<U> | AsyncIterable<U>>

Returns:

PolyAsyncIterable<U>

A new PolyAsyncIterable that will yield the elements of all sub-iterables

Remarks

This method is an alias of PolyAsyncIterable.flatten().