Instance Method

distance(to:)

Returns a stride x such that self.advanced(by: x) approximates other.

Declaration

func distance(to other: Self) -> Self.Stride

Discussion

If Stride conforms to Integer, then self.advanced(by: x) == other.

Complexity: O(1).