Open
Description
Add three methods to the slice
type, the partition_dedup
, partition_dedup_by
and partition_dedup_by_key
. The two other methods are based on slice::partition_dedup_by
.
Steps / History
- Implement the feature as a PR (Introduce the partition_dedup/by/by_key methods for slices #54058)
- Stabilization PR (see instructions on forge)
Unresolved Questions
- Should the methods only return one slice instead of a tuple with two slices? (comment)
- Annotate it with
#[must_use]
? - slice::sort_by_key has more restrictions than slice::sort_by #34162
Metadata
Metadata
Assignees
Labels
Area: `[T]`Blocker: Implemented in the nightly compiler and unstable.Category: An issue tracking the progress of sth. like the implementation of an RFCLibs issues that are considered "small" or self-containedLibs issues that are tracked on the team's project board.Relevant to the library API team, which will review and decide on the PR/issue.