static LS matchAny_firstGroups(S pat, Iterable l) { new Matches m; new LS out; for (S s : unnull(l)) if (match(pat, s, m)) out.add($1); ret out; }