navigate.tools.slicing.slice_len
- navigate.tools.slicing.slice_len(sl, n)
Calculate the length of the slice over an array of size n.
- Parameters:
sl (slice) – The slice.
n (int) – The size of the array.
- Returns:
The length of the slice.
- Return type:
int