I understand why the floats don't have an implementation for Ord
but that doesn't particularly help me when I want to be lazy and use iterators.
Is there a workaround or an easy way to take the minimum / min / min_by of an iterator containing floating point numbers?
I know one can sort (which is slow) or wrap it in another type and implement the needed trades (which is verbose) but I am hoping for something a little more elegant.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With