2 ms·
> X == Y: !(X < Y) && !(Y > X) Only for totally ordered sets [1]. Floating-point numbers, for example, are not totally ordered, because !(NaN == NaN). [1] htt
by adwn 9y ago
> X == Y: !(X < Y) && !(Y > X)
Only for totally ordered sets [1]. Floating-point numbers, for example, are not totally ordered, because !(NaN == NaN).
[1] https://en.wikipedia.org/wiki/Total_order https://en.wikipedia.org/wiki/Total_order