static L ai_findSpreadOutWords(LS tok, S... words) { ret ai_findSpreadOutWords(tok, wrapAsList(words)); } static L ai_findSpreadOutWords(LS tok, LS words) { int i = 1, iWord = 0, nWords = l(words), nTok = l(tok); new L indices; while (iWord < nWords) { if (i >= nTok) null; // fail if (eqic(tok.get(i), words.get(iWord))) { indices.add(i); ++iWord; } i += 2; } ret indices; } static L ai_findSpreadOutWords(S s, S... words) { ret ai_findSpreadOutWords(javaTok(s), words); }