(Swift Docs)[https://swiftdoc.org/v3.0]
- Number of Comparisons
What is the Equatable
operation being performed? Is it expensive?
- Least expensive is comparing primitives. Lexicographic equality checking of
String
can get expensive depending on the length of the string - Comparing reference types depends on the
Equatable
implementaiton
- Is the search or sort area halved each time?
Closed Range
Closing Window - Leftward - (1..Opening WindowSliding Window
Range Types CountableRange BidirectionalCollection .reversed()