// 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)); }