static HashSet mapToHashSet(O f, Iterable l) { HashSet x = l cast Cl ? : new(l.size()) : new HashSet; if (l != null) for (O o : l) x.add(callF(f, o)); ret x; } static HashSet lambdaMapLike mapToHashSet(IF1 f, Iterable l) { HashSet x = l cast Cl ? : new(l.size()) : new HashSet; if (l != null) for (O o : l) x.add(f.get(o)); ret x; }