Returns the distance from this value to the given value, expressed as a stride.
func distance(to other: Self) -> Self.Stride
The value to calculate the distance to.
The distance from this value to
If this type’s
Stride type conforms to
BinaryInteger, then for two values
y, and a distance
n = x.distance(to: y),
x.advanced(by: n) == y. Using this method with types that have a noninteger
Stride may result in an approximation.