type/table - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

type/table

check for a table

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(e, 'table')

Parameters

e

-

any expression

Description

• 

The expression type(e, 'table') returns the value true if the expression e is a table, and returns the value false otherwise.

• 

An expression is a table if it is created in one of several ways:

  

- by calling the table constructor

  

- by implicit table creation as a result of assignment to an indexed name

  

- by calling a procedure with option remember

• 

All tables are also of type tabular, but are distinct from rtables. Together, tables and rtables make up the tabular type.

• 

For a description of the table data structure and how to create tables, see table.

Examples

Ttable11,red,π

Ttable1=11,2=red,3=π

(1)

typeT,'table'

true

(2)

typetable,'table'

true

(3)

typertable,'table'

false

(4)

typertable,'tabular'

true

(5)

typea,'table'

false

(6)

ab2

ab2

(7)

typea,'table'

true

(8)

typeop4,evalsin,'table'

true

(9)

See Also

remember

table

type

type/tabular