Tracking issue for Iterator::is_partitioned (original) (raw)
/// 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
(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_keyalready cover all use cases?