meta-for MultiMap also as MultiSetMap { static LPair multiMapSingletonPairs(MultiMap mm) { new LPair out; if (mm != null) for (A key : mm.keySet()) { var values = mm.get(key); if (l(values) == 1) out.add(pair(key, first(values))); } ret out; } }