code: public static <T> Iterator<T> toUnique(Iterator<T> self) {
          return new UniqueIterator<T>(self, null);
      }
docs: Returns an iterator equivalent to this iterator with all duplicated
  items removed by using the natural ordering of the items.
  
  @param self an Iterator
  @return an Iterator with no duplicate items
  @since 2.4.0