type/stdlib - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Type Checking : Types : type/stdlib

type/stdlib

test for a standard library object

type/std

test for a standard object

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(expr, 'stdlib')

type(expr, 'std')

Parameters

expr

-

expression

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

typesin,stdlib

true

(1)

typesin,std

true

(2)

typeop,std

true

(3)

typeop,stdlib

false

(4)

type2,stdlib

false

(5)

typeUnits,stdlib

true

(6)

fssinscoss:

typef,stdlib

false

(7)

Get all user defined procedures in the current session.

selecttype,anamesprocedureminusanamesenvironment,¬std

anames,f,print

(8)

See Also

repository

type