Tracking issue for Iterator::is_partitioned · Issue #62544 · rust-lang/rust (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
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?