JuliaCollections / DataStructures.jl

Julia implementation of Data structures
https://juliacollections.github.io/DataStructures.jl/latest/
MIT License
679 stars 242 forks source link

remove the `<:Number` constraint in `Accumulator` #859

Closed Krastanov closed 12 months ago

Krastanov commented 12 months ago

Not all number-like types in the julia ecosystem subtype number, in particular various symbolic types in AbstractAlgebra and Nemo. I happen to need to accumulate over that type of "number". May we drop the type constraint?