function zip zip<A, B>(a: A[],b: B[]): [A, B][] Pairs up elements from two lists. Stops at the shorter list. Examples Example 1 zip([1, 2, 3], ["a", "b", "c"]); // [[1, "a"], [2, "b"], [3, "c"]] zip([1, 2, 3], ["a"]); // [[1, "a"]] Type Parameters A B Parameters a: A[] b: B[] Return Type [A, B][]