static L subList(L l, int startIndex) { ret subList(l, startIndex, l(l)); } static L subList(L l, int startIndex, int endIndex) { startIndex = max(0, min(l(l), startIndex)); endIndex = max(0, min(l(l), endIndex)); if (startIndex > endIndex) ret litlist(); ret l.subList(startIndex, endIndex); }