EDIT: Also posted as Bug report at https://github.com/JuliaLang/julia/issues/33766
Just stumbled over inconsistent == and hash for Tuple types:
- while
Tuple{Array} == (Tuple{Array{T}} where T) - we have
hash(Tuple{Array}) != hash(Tuple{Array{T}} where T)
Hence Tuple Types don’t work as keys for Dictionaries in the sense of 1., which I currently would like to have.
Is this intended behaviour?
How can I create a Dict with the semantic of 1.?
Julia 1.2.0