function
slice
slice(end: Int) -> Slice
Construct slice given the end value.
Args:
- end (
Int
): The end value.
Returns:
The constructed slice.
slice(start: Int, end: Int) -> Slice
Construct slice given the start and end values.
Args:
- start (
Int
): The start value. - end (
Int
): The end value.
Returns:
The constructed slice.
slice[T0: AnyRegType, T1: AnyRegType, T2: AnyRegType](start: T0, end: T1, step: T2) -> Slice
Construct a Slice given the start, end and step values.
Parameters:
- T0 (
AnyRegType
): Type of the start value. - T1 (
AnyRegType
): Type of the end value. - T2 (
AnyRegType
): Type of the step value.
Args:
- start (
T0
): The start value. - end (
T1
): The end value. - step (
T2
): The step value.
Returns:
The constructed slice.