mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[stdlib] pick off public non-protocol docs
197 undocumented public non-operator APIs remain in core Swift SVN r22242
This commit is contained in:
@@ -38,8 +38,10 @@ public func maxElement<
|
||||
return result
|
||||
}
|
||||
|
||||
// Returns the first index where `value` appears in `domain` or `nil` if
|
||||
// `domain` doesn't contain `value`. O(countElements(domain))
|
||||
/// Returns the first index where `value` appears in `domain` or `nil` if
|
||||
/// `value` is not found.
|
||||
///
|
||||
/// Complexity: O(\ `countElements(domain)`\ )
|
||||
public func find<
|
||||
C: CollectionType where C.Generator.Element : Equatable
|
||||
>(domain: C, value: C.Generator.Element) -> C.Index? {
|
||||
|
||||
Reference in New Issue
Block a user