Skip to content

feat: add min and max functions to the stdlib#4839

Merged
jfecher merged 3 commits intomasterfrom
tf/std-cmp-max-min
Apr 19, 2024
Merged

feat: add min and max functions to the stdlib#4839
jfecher merged 3 commits intomasterfrom
tf/std-cmp-max-min

Conversation

@TomAFrench
Copy link
Copy Markdown
Member

@TomAFrench TomAFrench commented Apr 18, 2024

Description

Problem*

Resolves #4781

Summary*

This PR adds an equivalent to Rust's std::cmp:max and std::cmp::min https://doc.rust-lang.org/src/core/cmp.rs.html#1209

Additional Context

Documentation*

Check one:

  • No documentation needed.
  • Documentation included in this PR.
  • [For Experimental Features] Documentation to be submitted in a separate PR.

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add min/max to std

2 participants