Home > polyethylene > PolyAsyncIterable > prepend
Return a new iteration that will iterate over other
, then over this
.
Signature:
prepend<U>(other: Iterable<U> | AsyncIterable<U>): PolyAsyncIterable<T | U>;
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
The resulting iteration is of the combined generic type of this
and other
, allowing this method to merge the types of two distinct iterables.