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

Replace sort functions with slices equivalents #10966

Open
RTann opened this issue May 1, 2024 · 1 comment
Open

Replace sort functions with slices equivalents #10966

RTann opened this issue May 1, 2024 · 1 comment

Comments

@RTann
Copy link
Contributor

RTann commented May 1, 2024

go1.21 introduced the slices package which offers nice utility functions related to slices.

It comes with sorting functions which we should use instead of the older, sort package for slices. The documentation for go1.21 for these functions suggests using the slices package for better efficiency and ergonomics. In go1.22, some of the implementations were even replaced with the slices equivalents.

@RTann
Copy link
Contributor Author

RTann commented May 1, 2024

#10965 gets this started, but it does not cover the following:

  • sort.IsSorted
  • sort.Slice
  • sort.SliceStable
  • sort.Sort
  • sort.Stable

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

No branches or pull requests

1 participant