static int indexOfMatches(S pat, L l, Matches m default null) { for i over l: if (match(pat, l.get(i), m)) ret i; ret -1; }