copyInto
Copies this range into destination, supporting overlapping ranges, and returns it.
The source range includes startIndex and excludes endIndex. Overlapping copies within the same array preserve the original source values in either direction. Both ranges are checked before any elements are written, even for an empty copy. Referenced objects are shared, not cloned.
Receiver
the array to copy from.
Return
the same destination array.
Parameters
the array to receive the elements.
the index at which to start writing in destination.
the inclusive source index; defaults to zero.
the exclusive source index; defaults to the source size.
Type Parameters
the destination element type.
Throws
if either range is outside its array or endIndex is less than startIndex.
Copies this range into destination, supporting overlapping ranges, and returns it.
The source range includes startIndex and excludes endIndex. Overlapping copies within the same array preserve the original source values in either direction. Both ranges are checked before any elements are written, even for an empty copy.
Receiver
the array to copy from.
Return
the same destination array.
Parameters
the array to receive the elements.
the index at which to start writing in destination.
the inclusive source index; defaults to zero.
the exclusive source index; defaults to the source size.
Throws
if either range is outside its array or endIndex is less than startIndex.