static L mapReplaceVars(final S pat, Iterable maps) { ret map(func(SS map) -> S { replaceVars(pat, map) }, maps); } static L> mapReplaceVars(L> patterns, final SS map) { ret map(func(L pat) -> LS { replaceVars(pat, map) }, patterns); }