-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for the GroupBy and GroupByMut iterators #80552
Copy link
Copy link
Closed
Labels
A-iteratorsArea: IteratorsArea: IteratorsA-sliceArea: `[T]`Area: `[T]`C-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 RFCLibs-TrackedLibs issues that are tracked on the team's project board.Libs issues that are tracked on the team's project board.T-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.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Metadata
Metadata
Assignees
Labels
A-iteratorsArea: IteratorsArea: IteratorsA-sliceArea: `[T]`Area: `[T]`C-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 RFCLibs-TrackedLibs issues that are tracked on the team's project board.Libs issues that are tracked on the team's project board.T-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.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(slice_group_by)]This is a tracking issue for the
GroupByandGroupByMutiterators.This feature exposes the
group_byandgroup_by_mutmethods on the slice and mutable slice types, these methods return theGroupByandGroupByMutiterators structs respectively. Those two iterators return subslices of the original slice where a user-defined function returnstruefor two following elements of the slice.Public API
These methods can return subslices that contains equal elements:
they can also be used to extract the sorted subslices:
Steps / History
group_byandgroup_by_mutmethods to slice rfcs#2477 (it was determined that an RFC wasn't needed)Unresolved Questions
group_by? Or should we reserve that name for another higher-level combinator?RFC: Add the
group_byandgroup_by_mutmethods to slice rfcs#2477 (comment)