inRange package:ranges

Tests if a given range contains a particular value.
Tests if any of the ranges contains a particular value.