TypeTools - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

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)

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam