Returns an interval as small as possible containing n or from l to r. Note that if l is to the right of r, the constructed interval is empty.
The object interval is a method function with options.