static LS matchAll_first(S pat, LS l) { ret map(matchAll(pat, l), func(Matches m) -> S { m.get(0) }); }