Code review by @djbe

This commit is contained in:
kawoou
2019-01-30 15:25:11 +09:00
parent ebb7ece511
commit 782ffdd4c7
2 changed files with 11 additions and 9 deletions

View File

@@ -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