In my project (written in Swift 3) I want to retrieve index of an element from array using indexOf(_:) method (existed in Swift 2.2), but I cannot find any replacem
indexOf(_:)
This worked for me in Swift 3 without an extension:
struct MyClass: Equatable { let title: String public static func ==(lhs: MyClass, rhs: MyClass) -> Bool { return lhs.title == rhs.title } }