static L lambdaMapLike uniquifyBy(IF1 f, Cl l) { if (l == null) null; if (l(l) < 2) ret asList(l); new HashSet set; new L out; for (A a : l) if (set.add(f.get(a))) out.add(a); ret out; } static L lambdaMapLike uniquifyBy(Cl l, IF1 f) { ret uniquifyBy(f, l); }