type/stdlib
test for a standard library object
type/std
test for a standard object
Calling Sequence
Parameters
Description
Examples
type(expr, 'stdlib')
type(expr, 'std')
expr
-
expression
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}.
type⁡sin,'stdlib'
true
type⁡sin,'std'
type⁡op,'std'
type⁡op,'stdlib'
false
type⁡2,'stdlib'
type⁡Units,'stdlib'
f ≔ s→sin⁡scos⁡s:
type⁡f,'stdlib'
Get all user defined procedures in the current session.
select⁡type,anames⁡'procedure'∖anames⁡'environment','Not⁡std'
anames,f,print
See Also
repository
type
Download Help Document