type/listlist - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

type/listlist

Check for a list of lists

 

Calling Sequence

Parameters

Description

Supertypes

Examples

Calling Sequence

type(expr, listlist)

type(expr, listlist(K))

Parameters

expr

-

any expression

K

-

type name

Description

• 

The function type/listlist returns true if expr is a nonempty list of lists, with each inner list having the same number of elements. Otherwise, it returns false.

• 

If a type is given, then an additional check will be made to ensure that all the operands of the inner lists are of the given type.

Supertypes

• 

type/nonemptylist

Examples

type,listlist

false

(1)

type1,2,3,4,listlist

true

(2)

type1,2,3,4,listlistinteger

true

(3)

type8,7,6,12,listlist

false

(4)

type1,2,3,4,5,listlist

false

(5)

type,listlist

true

(6)

typea,b,c,d,listlist

true

(7)

typea,b,c,d,listlistinteger

false

(8)

See Also

convert/list

list

type

type/list

type/Matrix