public void setArray(int index, E... elems) {
    	int arrayLen = elems.length;
        checkRange(index, arrayLen);

		doReplaceAll(index, arrayLen, new IReadOnlyListFromArray<E>(elems));
    }
Sets the specified elements.

@param index 	index of first element to set
@throws 			IndexOutOfBoundsException if the range is invalid
jphp-runtime/src/php/runtime/memory/support/IList.java