Method
Slice
func Slice(range: Range) -> Result<T[], InvalidRangeError>
Declaring type: ArrayList<T>
Module: System.Collections
Assembly: System.Runtime.dll
Source file: ArrayList.rvn
Returns an independent shallow array copy, resolving bounds against Count, not Capacity. Invalid bounds return InvalidRangeError before allocating the result.
Parameters
| Name | Type | Description |
|---|---|---|
range |
Range |
Return value
Result<T[], InvalidRangeError>