yta
    Preparing search index...

    Function flat

    • Flatten an iterator of iterators into a single iterator of items.

      import { pipe } from "yta";
      import { flat, of, range, toArray } from "yta/sync";

      pipe(of(range(0, 3), range(3, 6)), flat());
      // => [0, 1, 2, 3, 4, 5]

      See also:

      Type Parameters

      • A

        The item type

      Returns (iters: Iterable<Iterable<A, any, any>>) => Generator<A, void>