[stdlib] pick off public non-protocol docs

197 undocumented public non-operator APIs remain in core

Swift SVN r22242
This commit is contained in:
Dave Abrahams
2014-09-23 23:36:00 +00:00
parent 795799b0d2
commit 824e78dd89
4 changed files with 14 additions and 7 deletions

View File

@@ -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? {