Map the iterator into enumerated pairs.
import { pipe } from "yta";import { enumerate, of, toArray } from "yta/async";pipe(of("a", "b", "c"), enumerate(), toArray());// => [[0, "a"], [1, "b"], [2, "c"]] Copy
import { pipe } from "yta";import { enumerate, of, toArray } from "yta/async";pipe(of("a", "b", "c"), enumerate(), toArray());// => [[0, "a"], [1, "b"], [2, "c"]]
The item type
Map the iterator into enumerated pairs.