module internal.types.slice
¶
Source: stdlib/internal/types/slice.codon
internal.types.slice
¶Source: stdlib/internal/types/slice.codon
Slice[T,U,V]
@tuple Class is named tuple (cannot write fields) ¶start
: Optional[T]
¶stop
: Optional[U]
¶step
: Optional[V]
¶T
: type
¶U
: type
¶V
: type
¶__new__(stop: Optional[U], U: type = int)
¶__new__(start: Optional[T], stop: Optional[U], T: type = int, U: type = int)
@overload Function is overloaded ¶__new__(start: Optional[T], stop: Optional[U], step: Optional[V], T: type = int, U: type = int, V: type = int)
@overload Function is overloaded ¶__repr__(self)
@overload Function is overloaded ¶__eq__(self, other: Slice)
@overload Function is overloaded ¶__ne__(self, other: Slice)
@overload Function is overloaded ¶adjust_indices(self, length: int)
¶adjust_indices_helper(length: int, start: int, stop: int, step: int)
¶indices(self, length: int)
¶slice
= Slice
¶