static L> zipTwoListsToPairs(L l1, L l2) { int n = min(l(l1), l(l2)); LPair out = emptyList(n); for i to n: addPair(out, l1.get(i), l2.get(i)); ret out; }