type/stdlib - test for a standard library object
type/std - test for a standard object
|
Calling Sequence
|
|
type(expr, 'stdlib')
type(expr, 'std')
|
|
Description
|
|
•
|
The type(expr, 'stdlib') command distinguishes user defined procedures and modules from those provided by the standard Maple library. An expression expr is of type stdlib if it is a global symbol saved in the standard repository shipped with Maple.
|
•
|
Currently, this type is implemented by testing for the presence of a particular attribute on the expression. This attribute is given to all top-level symbols saved in the standard repository.
|
•
|
The type(expr, 'std') command describes the name of a built-in procedure or an object of type stdlib. It is, by definition, equivalent to the (structured) type {builtin, stdlib}.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
>
|
|
| (7) |
Get all user defined procedures in the current session.
>
|
|
| (8) |
|
|