Returns a Boolean value indicating whether the given element is contained within the range.
- Xcode 8.0+
- Swift Standard Library
The element to check for containment.
element is contained in the range; otherwise,
Range represents a half-open range, a
Range instance does not contain its upper bound.
element is contained in the range if it is greater than or equal to the lower bound and less than the upper bound.