Member group
Slice
Declaring type: SliceOperations
Module: System
Assembly: System.Runtime.dll
Overloads / Variants
Slice
func Slice<T>(range: Range) -> Slice<T>
Extension from SliceOperations.Slice
Borrows a half-open range relative to this view.
Parameters
| Name | Type | Description |
|---|---|---|
self |
Slice<T> | |
range |
Range |
Return value
Slice<T>
Slice
func Slice<T>(start: int, length: int) -> Slice<T>
Extension from SliceOperations.Slice
Borrows a nested window. Invalid bounds fault; elements are not copied.
Parameters
| Name | Type | Description |
|---|---|---|
self |
Slice<T> | |
start |
Int32 | |
length |
Int32 |
Return value
Slice<T>
Slice
func Slice<T>(start: int) -> Slice<T>
Extension from SliceOperations.Slice
Borrows from start to the end of this view.
Parameters
| Name | Type | Description |
|---|---|---|
self |
Slice<T> | |
start |
Int32 |
Return value
Slice<T>