You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia>using IntervalSets
julia>hash(1..2)
0x3932a21170706f90
julia>hash(OpenInterval(1,2)) # should be different0x3932a21170706f90
julia>isequal(2..1, 3..1)
true
julia>unique([2..1, 3..1]) # should be 1-element2-element Vector{ClosedInterval{Int64}}:2..13..1
The text was updated successfully, but these errors were encountered:
Good catch. There is a different definition of hash in DomainSets (which we should remove I suppose) which takes into account openness and so is correct for the first example, but it still gets the second one wrong.
It seems a unique variable _interval_hash is already defined, so for empty intervals we can return that one. For other intervals the openness of the endpoints is included, compared to the current implementation.
x-ref: #28 (comment)
The text was updated successfully, but these errors were encountered: