trimmedByRange

Returns a new range by trimming this by other's bounds.

Parameters

other

the other range.

rangeFactory

the range factory.