See the docs for mergewith:
help?> mergewith
mergewith(combine, d::AbstractDict, others::AbstractDict...)
mergewith(combine)
merge(combine, d::AbstractDict, others::AbstractDict...)
Construct a merged collection from the given collections. If necessary, the types of the resulting collection will be promoted to
accommodate the types of the merged collections. Values with the same key will be combined using the combiner function. The
curried form mergewith(combine) returns the function (args...) -> mergewith(combine, args...).
Method merge(combine::Union{Function,Type}, args...) as an alias of mergewith(combine, args...) is still available for backward
compatibility.
│ Julia 1.5
│
│ mergewith requires Julia 1.5 or later.
The code must have been written for (or by someone used to) Julia 1.4 or lower.