Home > polyethylene > PolyAsyncIterable > map
Return an iteration of the result of calling func(element)
for every element in this
.
Signature:
map<U>(func: AsyncIndexedMapping<T, U>): PolyAsyncIterable<U>;
Parameter | Type | Description |
---|---|---|
func | AsyncIndexedMapping<T, U> | A function that takes an element of this and returns something else |
Returns:
PolyAsyncIterable<U>
A new PolyAsyncIterable that yields the results of calling func(element)
for every element of this