Instance MethodSwiftindex(of:)Returns the first index where the specified value appears in the collection.Available when Self.Element conforms to EquatableDeprecated since Swift 5.0func index(of element: Self.Element) -> Self.Index?