static Map lambdaMapLike mapToKeys(Iterable l, IF1 f) { if (l == null) null; new HashMap map; for (A a : l) map.put(f.get(a), a); ret map; } static Map mapToKeys(IF1 f, Iterable or A[] l) { ret mapToKeys(l, f); }