mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
stdlib: protocol extensions: de-underscore indexOf()
Swift SVN r28244
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user