retrieve names of user-defined types - Maple Help

Home : Support : Online Help : Programming : Data Types : Type Checking : TypeTools : TypeTools/GetTypes

TypeTools[GetTypes] - retrieve names of user-defined types

 Calling Sequence GetTypes()

Description

 • All types registered with TypeTools[AddType] are returned as a list of names.
 • This function cannot be used to retrieve built-in types.

Examples

 > $\mathrm{TypeTools}[\mathrm{AddType}]\left('\mathrm{Type1}',\mathrm{identical}\left(1\right)\right)$
 > $\mathrm{TypeTools}[\mathrm{AddType}]\left('\mathrm{Type2}',\mathrm{identical}\left(2\right)\right)$
 > $\mathrm{TypeTools}[\mathrm{GetTypes}]\left(\right)$
 $\left[{\mathrm{Type1}}{,}{\mathrm{Type2}}\right]$ (1)