packtype - determine pseudo-type for packing
type.packtype([rank])
The packtype() method determines the
appropriate pseudo-type (e.g., PackInt,
PackFloat, etc.) for a packed array of the given
scalar type and rank. If rank is omitted, it
defaults to 1.
A Type value representing the packing type.
ArgCheck if more than 2 arguments are
provided.
TypeCheck if the first argument
is not a type or the second is not numeric.
typeof(1).packtype()
PackInt
typeof('a').packtype(1)
String
typeof('a').packtype(2)
PackChar