// TODO: work the other way around when set is small static Map onlyKeys(Map map, Cl keys) { Set keySet = asSet(keys); ret filterKeys(map, a -> contains(keySet, a)); } static Map onlyKeys(Map map, A... keys) { ret onlyKeys(map, litset(keys)); }