static int mmo_indexOfFirstMatch(S s, LS patterns) { ret indexOfPred(patterns, p -> mmo_match_parsedPattern(p, s)); }