static L subListOfCollection(Collection c, int from, int to) { int n = l(c); to = min(to, n); if (from >= n || to <= from) ret ll(); L l = new L(to-from); Iterator it = iterator(c); repeat from { it.next(); } while (from++ < to) l.add(it.next()); ret l; }