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.
1 parent 92b2190 commit 896d4fcCopy full SHA for 896d4fc
test/Prototypes/Algorithms.swift
@@ -613,6 +613,11 @@ extension Collection {
613
/// The collection must already be partitioned according to the
614
/// predicate, as if `self.partition(by: predicate)` had already
615
/// been called.
616
+ ///
617
+ /// - Efficiency: At most log(N) invocations of `predicate`, where
618
+ /// N is the length of `self`. At most log(N) index offsetting
619
+ /// operations if `self` conforms to `RandomAccessCollection`;
620
+ /// at most N such operations otherwise.
621
func partitionPoint(
622
where predicate: (Element) throws -> Bool
623
) rethrows -> Index {
0 commit comments