Init

Sets the size of the array, initializing all elements to the given value. Modifies the input array.