Skip to content

Swift 6 and Xcode 16 error on Collection #13

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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