You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
empty(::ImmutableDict, ::Type{K}, ::Type{V}) where {K, V} =ImmutableDict{K,V}()
818
815
819
-
_similar_for(c::Dict, ::Type{P}, itr, isz) where {P<:Pair} =similar(c, P)
816
+
_similar_for(c::Dict, ::Type{Pair{K,V}}, itr, isz) where {K, V} =empty(c, K, V)
820
817
_similar_for(c::Associative, T, itr, isz) =throw(ArgumentError("for Associatives, similar requires an element type of Pair;\n if calling map, consider a comprehension instead"))
0 commit comments