rust-lang/rust (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Tracking issue for Iterator::is_partitioned #62544
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
(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?