static L intsToIntRanges(L l) { new L out; for (int i = 0; i+1 < l(l); i += 2) out.add(intRangeFromTo(l.get(i), l.get(i+1))); ret out; }