TypeTools
GetType
retrieve definition of user-defined type
Calling Sequence
Parameters
Description
Examples
GetType(typename)
typename
-
symbol; name of the type
The definition for the type typename is returned.
This function can only be used to retrieve definitions of types that have been registered using TypeTools[AddType]. In particular, it cannot be used to retrieve built-in types.
TypeToolsAddType⁡tff,'identical⁡true,identical⁡false,identical⁡FAIL'
TypeToolsGetType⁡tff
identical⁡FAIL,identical⁡false,identical⁡true
TypeToolsAddType⁡integer7,t→evalb⁡t::integerandirem⁡t,7=0
a ≔ TypeToolsGetType⁡integer7
a≔TypeTools/integer7
print⁡a
t↦evalb⁡t::Typesetting:-_Hold⁡integerandirem⁡t,7=0
See Also
type
type[structured]
TypeTools[AddType]
TypeTools[GetTypes]
Download Help Document