The list of tuple.
The unzipped tuple.
import { empty, fromArray, toArray, unzip } from "./list.ts";
import { assertEquals } from "../deps.ts";
const [aList, bList] = unzip(
fromArray([
[2, 3],
[5, 4],
[11, 3],
]),
);
assertEquals(toArray(aList), [2, 5, 11]);
assertEquals(toArray(bList), [3, 4, 3]);
Generated using TypeDoc
Unzips the list of tuple into the tuple of list.