Skip to content

Commit 9310628

Browse files
authored
generic increment!
1 parent 58d7546 commit 9310628

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/factorization.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ function increment!(f::Factorization{T}, e::Int, p::Integer) where T
5656
end
5757
f
5858
end
59+
increment!(f::AbstractDict, e::Int, p::Integer) = (h[p] = get(h, p, 0) + 1)
5960

6061
Base.length(f::Factorization) = length(f.pe)
6162

0 commit comments

Comments
 (0)