Range.isSubsetOf

Determines whether this instance is non-empty subset of the specified range. All values in this range must be within the other range.

Note: For practical reasons, this isn't conforming strictly to the mathematical definition, where an empty set is considered to be a subset of any set. However, two equal ranges will be considered to be subsets of one another.

struct Range(T)
bool
isSubsetOf

Parameters

other This

instance to compare with this

Return Value

Type: bool

true if this range is a subset of the other range

Meta