diff --git a/base/dict.jl b/base/dict.jl index 70b7db00c9ab1..7217563bf1f85 100644 --- a/base/dict.jl +++ b/base/dict.jl @@ -144,6 +144,8 @@ function getindex(t::Associative, key) return v end +getindex(t::Associative, keys...) = [getindex(t, key) for key in keys] + push!(t::Associative, key, v) = setindex!(t, v, key) # hashing objects by identity