JuliaCollections / DataStructures.jl

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

do not drop repeat keys in Accumulate(::Pairs...) #861

Closed Krastanov closed 11 months ago

Krastanov commented 11 months ago

Previously the Accumulator(::Pairs...) constructor first converted the sequence to a Dict, thus dropping repeated keys, which seemed counter what I would expect an accumulator to do (e.g. when used with a generator).