We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
endIndex
1 parent 19c1d00 commit 0830109Copy full SHA for 0830109
Sources/Algorithms/Partition.swift
@@ -179,7 +179,8 @@ extension Collection {
179
/// - Parameter belongsInSecondPartition: A predicate that partitions the
180
/// collection.
181
/// - Returns: The index of the first element in the collection for which
182
- /// `predicate` returns `true`.
+ /// `predicate` returns `true`, or `endIndex` if there are no elements
183
+ /// for which `predicate` returns `true`.
184
///
185
/// - Complexity: O(log *n*), where *n* is the length of this collection if
186
/// the collection conforms to `RandomAccessCollection`, otherwise O(*n*).
0 commit comments