Map each item in the iterator.
import { pipe } from "yta";import { map, range, toArray } from "yta/sync";pipe( range(3), map((x) => x * 2),);// => [0, 2, 4] Copy
import { pipe } from "yta";import { map, range, toArray } from "yta/sync";pipe( range(3), map((x) => x * 2),);// => [0, 2, 4]
See also:
The input type
The output type
The mapping function
Map each item in the iterator.
See also: