Collection
From SwiftlyChordUtilities:
extension Collection where Indices.Iterator.Element == Index
-
subscript(safe:
From SwiftlyChordUtilities) Avoid ‘out of range’ fatal errors
Note
Don’t useindices
because it will loop over all elementsDeclaration
Swift
public subscript(safe index: Index) -> Iterator.Element?