Returns a range such that range is constrained to the start and end points of to. The function will try to maintain the length of the range, but will shrink the range if its length is greater than to.
range
to
Returns a range such that
rangeis constrained to the start and end points ofto. The function will try to maintain the length of the range, but will shrink the range if its length is greater thanto.