The left-side list.
The zipped list.
import { empty, fromArray, toArray, zip } from "./list.ts";
import { assertEquals } from "../deps.ts";
const aList = fromArray([1, 4, 2]);
const bList = fromArray([3, 5, 2]);
assertEquals(toArray(zip(aList)(bList)), [
[1, 3],
[4, 5],
[2, 2],
]);
Generated using TypeDoc
Zips two lists as the list of tuple.