Skip to content

Swift 6 and Xcode 16 error on Collection #13

Open
@paulocoutinhox

Description

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.

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions