static ItIt uniqueIterator(Iterator it) { new HashSet set; ret iff(() -> { while licensed { if (!it.hasNext()) ret endMarker(); A a = it.next(); if (set.add(a)) ret a; } ret endMarker(); }); }