type/sequential
check for a sequential object
Calling Sequence
Parameters
Description
Supertypes
Subtypes
type(expr, sequential)
type(expr, sequential(K))
expr
-
expression
K
type
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.
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.
type/indexable
type/list, type/set
A := [[1,2,3],[1,1,1],[5,7,9]];
A≔1,2,3,1,1,1,5,7,9
type(A, sequential);
true
S := {-1, 1/2, 1.0, "hello"};
S≔−1,12,1.0,hello
type(S, sequential(literal));
See Also
type/list
type/set
Download Help Document