-
|
Hello, I'm curious - why does |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hi @spinicist, glad you've found Flux useful!
Yes -- when called on an empty sequence, there is no "maximal" element, so |
Beta Was this translation helpful? Give feedback.
-
|
Ahah. I had not considered empty sequences. The choice definitely makes sense now. I took the liberty of creating #232 |
Beta Was this translation helpful? Give feedback.
Hi @spinicist, glad you've found Flux useful!
Yes -- when called on an empty sequence, there is no "maximal" element, so
flux::max()returnsnulloptinstead. (Note thatstd::ranges::max()has undefined behaviour in this case.)