Hi,

I have the following code:

using DataStrucures
d= DefaultDict(ASCIIString,Array{Int64},Array{Int64}(0))

push!(d["A"],2)
push!(d["B"],3)

d
DataStructures.DefaultDict{ASCIIString,Array{Int64,N},Array{Int64,1}} with 
2 entries:
  "B" => [2,3]
  "A" => [2,3]


Isn't it unexpected that when I push to any key, the value is pushed to all 
the other keys as well?

Thanks :)

Reply via email to