type/list
check for a list
Calling Sequence
Parameters
Description
Subtypes
Supertypes
Examples
type(expr, list)
type(expr, list(K))
expr
-
any expression
K
type name
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.
type/equationlist
type/nonemptylist
type/sequential
S≔1,32,2
type⁡S,list
true
type⁡S,list⁡rational
type⁡S,list⁡integer
false
L≔x4−1,x2,x+3
type⁡L,list
type⁡L,list⁡polynom⁡integer,x
See Also
Formats/ByType/List
list
set
type
type/listlist
type/set
Download Help Document