stdlib: protocol extensions: de-underscore indexOf()

Swift SVN r28244
This commit is contained in:
Dmitri Hrybenko
2015-05-07 00:30:33 +00:00
parent 25e74d21db
commit f76ca6243e
9 changed files with 22 additions and 21 deletions

View File

@@ -48,7 +48,7 @@ extension CollectionType where ${GElement} : Equatable {
/// `value` is not found.
///
/// - complexity: O(`self.count()`)
final public func _prext_indexOf(element: ${GElement}) -> Index? {
final public func indexOf(element: ${GElement}) -> Index? {
if let result = _customIndexOfEquatableElement(element) {
return result
}
@@ -67,7 +67,7 @@ extension CollectionType {
/// corresponding value, or `nil` if such value is not found.
///
/// - complexity: O(`self.count()`)
final public func _prext_indexOf(
final public func indexOf(
@noescape predicate: (${GElement}) -> Bool
) -> Index? {
for i in indices(self) {