static L lineStartIndexes(S s) { new L l; l.add(0); int i = 0; while ((i = indexOf(s, '\n', i)) >= 0) l.add(++i); ret l; }