static LPair overlappingPairsPlus1(L l) { new L> out; Iterator it = iterator(l); if (!it.hasNext()) ret out; A a = it.next(); while (it.hasNext()) { A b = it.next(); addPair(out, a, b); a = b; } addPair(out, a, null); ret out; }