Code review by @djbe
This commit is contained in:
@@ -36,3 +36,11 @@ public extension Variable {
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !swift(>=4.2)
|
||||
extension ArraySlice where Element: Equatable {
|
||||
func firstIndex(of element: Element) -> Int? {
|
||||
return index(of: element)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user