Normalizes an index denoting the end of a range within a longer array-like structure.
Effectively ensures that it is within [start, limit].
You can use negative indices to count back from the end.
If end is omitted, limit is assumed.
If start is omitted, 0 is assumed.
Normalizes an index denoting the end of a range within a longer array-like structure. Effectively ensures that it is within [start, limit]. You can use negative indices to count back from the end.
If end is omitted, limit is assumed. If start is omitted, 0 is assumed.