static LS pAttractor_allMatches(PartialAttractor a, LS tok) { int i = 0; new LS out; while (licensed() && i < l(tok)) { a.tok = subList(tok, i); if (!a.find()) break; assertTrue("match must not be empty", a.matchedRange.end >= 2); out.add(a.matchedString()); i += a.matchedRange.end & ~1; // go to next N token } ret out; }