|On this page|
Extracts a string or array from a larger array.
If start or end are negative, they refer to distances from the end of the array.
The final range to extract is clamped to the bounds of the original array.
If step is zero, it is an error and an empty string or array is returned.
If step is negative, the end should be below the start.
end is not included in the resulting slice. Thus if start and end are the same, an empty string or slice is returned.
The array to perform slice operation on.
The starting element in the new array. Included in the result.
The ending element in the new array. Not included in result.
The sliced array.