public void putArray(int index, E... elems) {
        putAll(index, new IReadOnlyListFromArray<E>(elems));
    }
Set or add the specified elements.
If the index is smaller than the size of the list, the existing element is replaced.
If the index equals the size of the list, the element is added.

@param index index of first element to set or add
@param elems	array with elements to set or add
jphp-runtime/src/php/runtime/memory/support/IList.java