stdlib: rename find() to indexOf() per API review

Swift SVN r27849
This commit is contained in:
Dmitri Hrybenko
2015-04-28 00:30:37 +00:00
parent 82baf4eca1
commit fd14e70e48
6 changed files with 19 additions and 19 deletions

View File

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