Returns the distance from this value to the given value, expressed as a stride.
SDK
- Xcode 8.0+
Framework
- Swift Standard Library
Declaration
Parameters
other
The value to calculate the distance to.
Return Value
The distance from this value to other
.
Discussion
For two values x
and y
, and a distance n = x
, x
.