Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 1.02 KB

polyethylene.polyasynciterable.prepend.md

File metadata and controls

30 lines (17 loc) · 1.02 KB

Home > polyethylene > PolyAsyncIterable > prepend

PolyAsyncIterable.prepend() method

Return a new iteration that will iterate over other, then over this.

Signature:

prepend<U>(other: Iterable<U> | AsyncIterable<U>): PolyAsyncIterable<T | U>;

Parameters

Parameter Type Description
other Iterable<U> | AsyncIterable<U> Iterable to be prepended

Returns:

PolyAsyncIterable<T | U>

a new PolyAsyncIterable that yields the elements of other and then the elements of this

Remarks

The resulting iteration is of the combined generic type of this and other, allowing this method to merge the types of two distinct iterables.