-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking Issue for Iterator::{dedup, dedup_by, dedup_by_key} #83747
Copy link
Copy link
Open
Labels
A-iteratorsArea: IteratorsArea: IteratorsC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-iteratorsArea: IteratorsArea: IteratorsC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(iter_dedup)]This is a tracking issue for the functions
std::iter::Iterator::{dedup, dedup_by, dedup_by_key}as well as the structsstd::iter::{Dedup, ByKey, ByPartialEq}.This feature provides similar functionality as the functions for slices and
Vecs with the same name:Public API
Steps / History
dedup,dedup_byanddedup_by_keyto theIteratortrait #83748Unresolved Questions
Is there a way to reducededupanddedup_by_keyto a call todedup_bywithout creating an impossible function signature?Should we also implementSourceIterandInPlaceIterablefor these structs?How should/can we react to an infinite iterator where all items are the same?Is there a way to turn this into a no-op for iterators which cannot contain duplicates (e.g.hashset.iter().dedup())?