Previous Up Next

12.2.5 Checking the type of the argument: type subtype compare getType

The type command finds the type of its input.

Examples

Xcas has various types of lists; the subtype command can determine what kind of list it is.

Example

Input:

subtype(1,2,3)

Output:

1


The compare operator compares two objects taking their type into account.

Examples


The getType command is similar to type in that it takes an object and returns the type, but it has different possible return values. It is included for compatibility reasons.

Examples


Previous Up Next