static L allStringSplits(S s) { L out = emptyList(l(s)-1); for (int i = 1; i < l(s); i++) out.add(substring(s, 0, i), substring(s, i)); ret out; }