Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 953 Bytes

polyethylene.polyasynciterable.map.md

File metadata and controls

26 lines (15 loc) · 953 Bytes

Home > polyethylene > PolyAsyncIterable > map

PolyAsyncIterable.map() method

Return an iteration of the result of calling func(element) for every element in this.

Signature:

map<U>(func: AsyncIndexedMapping<T, U>): PolyAsyncIterable<U>;

Parameters

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