Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: sorted_by_cached_key #424

Closed
Boscop opened this issue Mar 10, 2020 · 0 comments · Fixed by #575
Closed

Suggestion: sorted_by_cached_key #424

Boscop opened this issue Mar 10, 2020 · 0 comments · Fixed by #575

Comments

@Boscop
Copy link

Boscop commented Mar 10, 2020

Suggestion: sorted_by_cached_key

Like sorted_by_key but caching keys like slice::sort_by_cached_key.

Please add it, it would be very useful :)

bors bot added a commit that referenced this issue Oct 13, 2021
575: Add `sorted_by_cached_key` to `Itertools` trait r=jswrenn a=density

Fixes #424.

This function is a wrapper around `slice::sort_by_cached_key`.

Added tests similar to those for `sorted_by_key`. New code is formatted using `rustfmt`.

Co-authored-by: Justin Prieto <justin@prieto.nyc>
@bors bors bot closed this as completed in d856ee7 Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant