Avatar
omochimetaru 9/24/2021 5:34 PM
BidirectionalCollection.index(_:offsetBy:) is the most obvious example, because the BidirectionalCollection ’s version of index(_:offsetBy:) allows negative indices. RandomAccessCollection ’s version is also marked @_nonoverride because it is required to be asymptotically faster than the Collection or BidirectionalCollection versions.
5:35 PM
nonoverrideの方は最も明らかな例としてなんか書いてあるけどわからねえ・・・