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

Add [f32]::sort_floats and [f64]::sort_floats #93397

Merged
merged 1 commit into from
Jul 23, 2022

Commits on Jun 20, 2022

  1. Add [f32]::sort_floats and [f64]::sort_floats

    It's inconvenient to sort a slice or Vec of floats, compared to sorting
    integers. To simplify numeric code, add a convenience method to `[f32]`
    and `[f64]` to sort them using `sort_unstable_by` with `total_cmp`.
    joshtriplett committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    bded8fc View commit details
    Browse the repository at this point in the history