Skip to content

Swift 6 and Xcode 16 error on Collection #13

@paulocoutinhox

Description

@paulocoutinhox

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

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions