Closed antonio-pedro99 closed 2 years ago
Not really sure what to do with ranges that does not include an end. But my assumption is if a range spans to infinity and the first element in the range is less than n, we should return the first element otherwise return the n.
If n is between beginning of the range and end of the range, the result should be n. If range spans to infinity and the first element in the range is less than n it means that n is in the range.
I guess a good start of the function would be something like n in r returns n
Also please add appropriate entry in the changelog file (root folder of the repo)
Not really sure what to do with ranges that does not include an end. But my assumption is if a range spans to infinity and the first element in the range is less than n, we should return the first element otherwise return the n.