Extensions
The following extensions are available globally.
-
The solution is inspired by the comment https://stackoverflow.com/a/45585365/7926205
See moreDeclaration
Swift
protocol RandomAccessCollection : _RandomAccessIndexable, BidirectionalCollection where Self.Indices : BidirectionalCollection, Self.Indices : _RandomAccessIndexable, Self.SubSequence : BidirectionalCollection, Self.SubSequence : _RandomAccessIndexable