Instance Method

advanced(by:)

Returns a Self x such that self.distance(to: x) approximates n.

Declaration

func advanced(by n: Self.Stride) -> Self

Discussion

If Stride conforms to Integer, then self.distance(to: x) == n.

Complexity: O(1).