FuelLabs / sway

🌴 Empowering everyone to build reliable and efficient smart contracts.
https://docs.fuel.network/docs/sway/
Apache License 2.0
62.76k stars 5.36k forks source link

Add `min` and `max` functionality built off of `Ord` #6169

Open bitzoic opened 3 months ago

bitzoic commented 3 months ago

Add functionality to compare min and max values allow you to find the maximum or minimum of two values similar to Rust https://doc.rust-lang.org/std/cmp/index.html

SwayStar123 commented 3 months ago

Isnt this a duplicate for #2351 ?