static LPair> multiSetMapToMapPairs(MultiSetMap mm) { LPair> out = new L; for (A key : keys(mm)) out.add(pair(key, mm.get(key))); ret out; }