sS matchedAsteriskPatternToGrouping(S pat, Matches m) { ret format(pat, map curly(m.m)); }