I wrote a function that should take a Dict{String, <anything>} (so with any value). However when I specify the required parameter as Dict{String, Any} the function only takes the explicit Dict{String, Any}. Is there a way to let a Dict take any value?
function funky(arg::Dict{String, Any})
return "Oh, hi mark."
end
julia> funky(Dict("Oh" => [0 1; 2 3]))
ERROR: MethodError: no method matching funky(::Dict{String,Array{Int64,2}})
Closest candidates are:
funky(::Dict{String,Any})
julia> funky(Dict{String, Any}("Oh" => [0 1; 2 3]))
"Oh, hi mark."