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

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

        return result;
    }
public static <T, X, E extends Throwable> List<X> map(List<T> coll, AFunction1<? super T, ? extends X, E> f) throws E {
        final List<X> result = createEmptyListOfType (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.