JuliaCollections / JuliaCollections/DataStructures.jl
Should a isempty accumulator with all elements having a count of 0 return true?
Open
Nobody has claimed this yet.
requires thought
- Dominant language
- Julia
- Stars
- 745
- Forks
- 261
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Accumulator implementation and its isempty entry point, then reproduce the Julia REPL example from the issue. Done means an accumulator containing only zero-count elements is treated as empty while an accumulator with positive counts is not.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100