I want to create a dictionary whose entries are 2-tuples where the second element is a function.
One such dictionary would be:
di1 = Dict(:C => ([:AA], identity))
However, its type does not match what I want:
typeof(di1)
# Dict{Symbol, Tuple{Vector{Symbol}, typeof(identity)}}
This is true:
typeof(identity) <: Function
# true
But this is false:
typeof(di1) <: Dict{Symbol, Tuple{Vector{Symbol}, <:Function}}
# false
So if define:
di2 = Dict(:C => ([:AA], x -> x))
I get:
typeof(di2) <: typeof(di1)
# false
How can I define a type for Dict(:C => ([:AA], f))
so that it works for any function f
?