// f: func(key, value) -> entry static L mapMapToList(Map map, O f) { new L l; if (map != null) for (Map.Entry e : map.entrySet()) l.add(callF(f, e.getKey(), e.getValue())); ret l; }