type - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


type/type

check for type expressions

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(a, type)

Parameters

a

-

any expression

Description

• 

The call type(a, type) checks to see if a is a valid type expression. By definition, a type expression is any expression a for which the command type(expr, a) could succeed.

• 

A type defined by the system (such as integer, numeric, and name), a type defined by a procedure (`type/a`), a type defined by an assignment, or a combination of types are valid type expressions.

Examples

> 

type⁡integer,type

true

(1)
> 

type⁡a,type

false

(2)
> 

type⁡name=numeric..numeric,type

true

(3)
> 

mytype≔integer,list,name

mytype≔integer,list,name

(4)
> 

type⁡mytype,type

true

(5)

See Also

indets

type

type/structured