That’s an interesting point. I agree about documenting it somehow. @nnnnnnnn , what do you think the best convention would be? A note at the end of the doc providing a Complexity section for older OSes?
(note that the default implementation of _reverseOffsetIndex is still O(1) for random-access collections, as its implemented in terms of distance and index(_:offsetBy:))
How do you feel about the following phrasing, sticking it under “Effect on ABI stability”?
Collection types defined in previously-compiled binaries would use the default
Collectionimplementation of_reverseOffsetIndexuntil recompiled, givingO(1)complexity if random-access, elseO(n)(even if bidirectional).