a-foundation/src/main/java/com/ajjpj/afoundation/collection/ACollectionHelper.java
public static <T,U,E extends Throwable> Set<U> createSet (Iterator<T> elements, AFunction1<T,U,E> f) throws E {
        final Set<U> result = new HashSet<> ();
        while (elements.hasNext ()) result.add (f.apply (elements.next ()));
        return result;
    }
public static <T,U,E extends Throwable> Set<U> createSet (Iterator<T> elements, AFunction1<T,U,E> f) throws E {
        final Set<U> result = new HashSet<> ();
        while (elements.hasNext ()) result.add (f.apply (elements.next ()));
        return result;
    }
public static < T , U , E extends Throwable > Set < U > createSet ( Iterator < T > elements , AFunction1 < T , U , E > f ) throws E { final Set < U > result = new HashSet <> ( ) ; while ( elements . hasNext ( ) ) result . add ( f . apply ( elements . next ( ) ) ) ; return result ; }
Create a {@link java.util.Set} from an {@link Iterator}, transforming each element.
Create a {