If you need to find if a particular element e
is inside a range r
***, you can use
r===e
instead of the longer:
r.cover?(e) # only works if `r.exclude_end?` is false
instead of the longer:or
r.member?(e)
or
r.include?(e)
*This is true only if r.exclude_end?
is false