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