SwiftBoost icon indicating copy to clipboard operation
SwiftBoost copied to clipboard

Swift 6 and Xcode 16 error on Collection

Open paulocoutinhox opened this issue 1 year ago • 1 comments

Hi,

Im getting this error:

import Foundation

extension Collection {
    func get(at i: Index) -> Element? {
        return indices.contains(i) ? self[i] : nil
    }
}

Do you have the same error?

Thanks.

paulocoutinhox avatar Sep 26 '24 20:09 paulocoutinhox