import { flatten } from "https://deno.land/x/itertools@v1.1.1/mod.ts";
Return an iterator flattening one level of nesting in a list of lists:
[...flatten([[0, 1], [2, 3]])]
// [0, 1, 2, 3]
Parameters
iterableOfIterables: Iterable<Iterable<T>>
import { flatten } from "https://deno.land/x/itertools@v1.1.1/mod.ts";
Return an iterator flattening one level of nesting in a list of lists:
[...flatten([[0, 1], [2, 3]])]
// [0, 1, 2, 3]