You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
indices(...) method of builtins.slice instance
S.indices(len) -> (start, stop, stride)
Assuming a sequence of length `len`, calculate the start and stop
indices, and the stride length of the extended slice described by
S. Out of bounds indices are clipped in a manner consistent with the
handling of normal slices.
There is apparently a little known function on slices which could simplify a lot of the StartStopStep functionality.
The text was updated successfully, but these errors were encountered:
There is apparently a little known function on
slice
s which could simplify a lot of theStartStopStep
functionality.The text was updated successfully, but these errors were encountered: