Open
Description
/// Checks if the elements of this iterator are partitioned according to the given predicate,
/// such that all those that return `true` precede all those that return `false`.
fn is_partitioned<P>(mut self, mut predicate: P) -> bool
where
Self: Sized,
P: FnMut(Self::Item) -> bool,
feature = "iter_is_partitioned"
ref: #62278
Unresolved questions
- Do we want this function at all? (Motivating use cases would be useful.)
- Would
is_sorted_by_key
already cover all use cases?