a-foundation/src/main/java/com/ajjpj/afoundation/collection/ACollectionHelper.java
public static <T, X, E extends Throwable> Set<X> map (Set<T> coll, AFunction1<? super T, ? extends X, E> f) throws E {
        final Set<X> result = createEmptySetOfType(coll, true);

        for(T o: coll) {
            result.add(f.apply(o));
        }

        return result;
    }
public static <T, X, E extends Throwable> Set<X> map (Set<T> coll, AFunction1<? super T, ? extends X, E> f) throws E {
        final Set<X> result = createEmptySetOfType(coll, true);

        for(T o: coll) {
            result.add(f.apply(o));
        }

        return result;
    }
Applies a transformation function to all elements of a collection, creating a new collection from the results.