Function Interval.contains

Check whether the value x is contained in the interval, i.e. whether a <= x <= b or b <= x <= a.

bool contains(X) (
  X x
) const @safe;