I have a parameterized type and want to get the primary-type.  For
example, I got

a = Array{Int,2}

is there a type-stable way to get Array?  This is non-type stable:

f(t::Type) = t.name.primary

as the inferred return type is Type.

This does not work:

f{T, S}(::Type{T{S...}}) = T

Any ideas? Thanks, M

Reply via email to