import { flat } from "https://deno.land/x/iter@v3.2.3/mod.ts";
Lazily flattens a nested iterable to a given depth. Similar to
Array.prototype.flat
Type Parameters
Iter extends Iterable<NestedIterableContent<T>>
Parameters
iter: Iter
- The iterable to be flattened.
Returns
IterableCircular<NestedIterableContent<T>>
The flattened iterable.