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 .