Skip to content

unexpected behavior with Set? #142

Open
@maxasauruswall

Description

@maxasauruswall

Hi All,

Thanks for the great package!

I'm not sure if this behavior is expected, but it surprised me, so I thought I'd ask.

s = Set()
push!(s, 1us"day") # -> Set with 1 element
push!(s, 1us"day") # -> Set with 2 elements

I would have expected the set to only to have 1 element, because:

isequal(1us"day", 1us"day") # -> true

Am I mistaken in my intuition here?

Thanks for your time and work.
Cheers,
Max

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions