// patterns last so we can use var args static bool matchEndOneOf(S s, Matches m, S... pats) { for (S pat : pats) if (matchEnd(pat, s, m)) true; false; } static bool matchEndOneOf(S s, S... pats) { ret matchEndOneOf(s, null, pats); }