inRange package:generic-deriving

Returns True the given subscript lies in the range defined the bounding pair.
Returns True the given subscript lies in the range defined the bounding pair.