Instance Methodswift 6.0.3Swift
index(of:)
Returns the first index where the specified value appears in the collection.
This declaration has been renamed to Collection.firstIndex(of:).
This declaration was deprecated in Swift 5.0.
func index(of element: Self.Element) -> Self.Index?