Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should a isempty accumulator with all elements having a count of 0 return true? #836

Open
oxinabox opened this issue Dec 11, 2022 · 0 comments
Labels
requires thought For things that need some thought in them and do not have obvious correct answer

Comments

@oxinabox
Copy link
Member

Current behavour:

julia> x = Accumulator{Int, Int}()
Accumulator{Int64,Int64}()

julia> isempty(x)
true

julia> x[1]=0
0

julia> isempty(x)
false

Under the multiset interpretttion I think this should be true

@oxinabox oxinabox added the requires thought For things that need some thought in them and do not have obvious correct answer label Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires thought For things that need some thought in them and do not have obvious correct answer
Projects
None yet
Development

No branches or pull requests

1 participant