Collection

From SwiftlyChordUtilities:
extension Collection where Indices.Iterator.Element == Index

Available where Indices.Iterator.Element == Index

  • subscript(safe:) From SwiftlyChordUtilities

    Avoid ‘out of range’ fatal errors

    Note

    Don’t use indices because it will loop over all elements

    Declaration

    Swift

    public subscript(safe index: Index) -> Iterator.Element? { get }