type/name
check for an object of type name
Calling Sequence
Parameters
Description
Supertypes
Examples
type(x, name)
type(x, name(t))
x
-
expression
t
type
The call type(x, 'name') checks if x is of type name. It returns true if x is of type name. Otherwise, it returns false.
An object is of type name if it is a symbol, or if it is of type indexed and its root is of type name (that is, it is a recursive type).
If the parameter t is included, it checks that x is assigned something of that type.
type/algebraic
type⁡1,name
false
type⁡12,name
type⁡0.5,name
type⁡String,name
type⁡Name,name
true
type⁡ab,name
type⁡a,name⁡integer
a≔3
See Also
name
type/atomic
type/indexed
type/string
type/symbol
Download Help Document