mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib: rename find() to indexOf() per API review
Swift SVN r27849
This commit is contained in:
@@ -38,7 +38,7 @@ public func find<
|
||||
C: CollectionType where C.Generator.Element : Equatable
|
||||
>(domain: C, _ value: C.Generator.Element) -> C.Index? {
|
||||
// FIXME(prext): remove this function when protocol extensions land.
|
||||
return domain._prext_find(value)
|
||||
return domain._prext_indexOf(value)
|
||||
}
|
||||
|
||||
/// Return the lesser of `x` and `y`
|
||||
|
||||
Reference in New Issue
Block a user