Replaces a length of values from a starting position with the given variadic values, and returns the values that were replaced as an array.
Replaces a length of values from a starting position with the given values.
Returns an array of the values contained in the half-open interval [start, end), that is, including the start and excluding the end.