function arrayClearIndex<A> input array<A> arr; input Integer index; output array<A> newArray; end arrayClearIndex;