Returns a value that is offset the specified distance from this value.
- Xcode 8.0+
- Swift Standard Library
The distance to advance this value.
A value that is offset from this value by
advanced(by:) method in generic code to offset a value by a specified distance. If you’re working directly with numeric values, use the addition operator (
+) instead of this method.
If this type’s
Stride type conforms to
Binary, then for a value
x, a distance
n, and a value
y = x,
x. Using this method with types that have a noninteger
Stride may result in an approximation.