Add isless and make isequal consistent with hash#28
Add isless and make isequal consistent with hash#28andyferris wants to merge 1 commit intoJuliaMath:masterfrom
isless and make isequal consistent with hash#28Conversation
|
The alternative of course would be to add a check for empty closed intervals in |
|
This came while I was traveling without internet, sorry it didn't get attention until now. I understand your point about |
|
OK. This seems consistent with how we treat empty ranges, arrays, etc. |
|
This is a pretty old PR, but do we still want to add the check to |
The current
isequalwon't work in aDictbecause it violates the principle thatisequal(a, b)implieshash(a) == hash(b). This is corrected to not special case empty intervals (unlike==where this makes perfect sense).I also provide an
islessfunction so that intervals can besorted stabily and so-on.