sequential - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


type/sequential

check for a sequential object

 

Calling Sequence

Parameters

Description

Supertypes

Subtypes

Calling Sequence

type(expr, sequential)

type(expr, sequential(K))

Parameters

expr

-

expression

K

-

type

Description

• 

The type(expr, sequential) calling sequence returns true if expr is any one of the following types of Maple objects.

list

set

 

• 

The type(expr, sequential(K)) calling sequence returns true if expr is of type sequential and type(x, K) is true for each element x in expr.

• 

The type(expr, sequential(K)) calling sequence returns true if expr is of type sequential and type(x, K) is true for each element x in expr.

• 

An expression sequence is also of type sequential. Please note that type((1,2),sequential) will return an error, since it simplifies to type(1,2,sequential) and checks that 1 is of type 2. However, evalb((1,2)::sequential) returns true.

Supertypes

• 

type/indexable

Subtypes

• 

type/list, type/set

A := [[1,2,3],[1,1,1],[5,7,9]];

A1,2,3,1,1,1,5,7,9

(1)

type(A, sequential);

true

(2)

S := {-1, 1/2, 1.0, "hello"};

S−1,12,1.0,hello

(3)

type(S, sequential(literal));

true

(4)

See Also

type

type/indexable

type/list

type/set