Adding elements to dictionaries?

You have to construct the original dictionary d with this flexibility in mind, for example

d = Dict{String,Any}("a"=->(1,2,3))

would allow values of type String as dictionary keys and Anything as dictionary values.

2 Likes