Impossible values of allunique() and allequal() #55134
Labels
collections
Data structures holding multiple items, e.g. sets
duplicate
Indicates similar issues or pull requests
equality
Issues relating to equality relations: ==, ===, isequal
hashing
With the following struct,
allunique
andallequal
are giving incompatible (and mathematically impossible!) results.MWE:
and then in the REPL
And even more confusingly
So not only are we getting incompatible values of
allunique
andallequal
, we also fail to haveallunique(X) => allunique(X[1:end])
.Clearly
allunique
is behaving both contrary to the documentation and any reasonable expectation, for iterators with at least 32 entries.Julia versioninfo:
The text was updated successfully, but these errors were encountered: