type/list - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : type/list

type/list

check for a list

 

Calling Sequence

Parameters

Description

Subtypes

Supertypes

Examples

Calling Sequence

type(expr, list)

type(expr, list(K))

Parameters

expr

-

any expression

K

-

type name

Description

• 

In the first calling sequence, the type command checks if expr is a valid Maple list. It returns true if expr is a list and false otherwise.

• 

See the list help pages for a description of the list datatype.

• 

In the second calling sequences, where K is a specified type name, the type command checks whether expr is a list whose entries are of type K.  That is, type(expr, list(K)) returns true if type(expr, list) is true and type(x, K) is true for each entry x of expr.

• 

See the type help page for a description of valid types in Maple.

Subtypes

• 

type/equationlist

• 

type/nonemptylist

Supertypes

• 

type/sequential

Examples

S1,32,2

S1,32,2

(1)

typeS,list

true

(2)

typeS,listrational

true

(3)

typeS,listinteger

false

(4)

Lx41,x2,x+3

Lx41,x2,x+3

(5)

typeL,list

true

(6)

typeL,listpolynominteger,x

true

(7)

See Also

Formats/ByType/List

list

set

type

type/listlist

type/nonemptylist

type/sequential

type/set