public void initArray(E... elems) {
    	initAll(new IReadOnlyListFromArray<E>(elems));
	}
Initializes the list so it will afterwards only contain the elements of the array.
The list will grow or shrink as needed.

@param elems array with elements
@throws 		IndexOutOfBoundsException if the length is invalid
jphp-runtime/src/php/runtime/memory/support/IList.java