A partial interval up to, and including, an upper bound.
SDK
Xcode 9.0+
Framework
Swift Standard Library
Declaration
Overview
You create PartialRangeThrough instances by using the prefix closed range operator (prefix ...).
You can use a PartialRangeThrough instance to quickly check if a value is contained in a particular range of values. For example:
You can use a PartialRangeThrough instance of a collection’s indices to represent the range from the start of the collection up to, and including, the partial range’s upper bound.