static L> splitListBy(L l, S sep) { int i = 0; new L> x; while (i < l(l)) { int j = indexOf(l, sep, i); if (j < 0) j = l(l); if (j > i) x.add(l.subList(i, j)); i = j+1; } ret x; }