a-foundation/src/main/java/com/ajjpj/afoundation/collection/immutable/AList.java
public static <T> AList<T> create(List<T> elements) {
        AList<T> result = nil();

        for(int i=elements.size()-1; i>=0; i--) {
            result = result.cons(elements.get(i));
        }
        return result;
    }
public static <T> AList<T> create(List<T> elements) {
        AList<T> result = nil();

        for(int i=elements.size()-1; i>=0; i--) {
            result = result.cons(elements.get(i));
        }
        return result;
    }
public static < T > AList < T > create ( List < T > elements ) { AList < T > result = nil ( ) ; for ( int i = elements . size ( ) - 1 ; i >= 0 ; i -- ) { result = result . cons ( elements . get ( i ) ) ; } return result ; }
Creates an AList based on the contents of an existing <code>java.util.List</code>, copying its content.
Creates an AList based on the contents of an existing <code > java . util . List< / code > copying its content .