Skip to content

keys and hash don't work on ranges with many elements #35603

Open
@rfourquet

Description

@rfourquet
julia> keys(1:Int128(2)^64)
ERROR: InexactError: trunc(Int64, 18446744073709551616)
Stacktrace:
[...]

And hash fails because keys fails, but it's unfriendly to not be able to store a huge range in a Set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrays[a, r, r, a, y, s]bugIndicates an unexpected problem or unintended behaviorhashing

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions