Range.isSupersetOf

Determines whether this instance is a superset of the non-empty specified range. All values in the other range must be within this 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 supersets of one another.

struct Range(T)
bool
isSupersetOf

Parameters

other This

instance to compare with this

Return Value

Type: bool

true if this range is a superset of the other range

Meta