type/suffixed
check for a symbol with a given suffix
Calling Sequence
Parameters
Description
Examples
type(x, suffixed(y))
type(x, suffixed(y, stype))
x
-
any expression
y
symbol, string, or set or list of either symbols or strings
stype
type
A call to type suffixed with one parameter checks whether a symbol or string x has the same type as y, and x begins with the characters of y.
With two parameters, x is checked to see if it has the same type of and begins with the characters of y and that the balance, when parsed, is of type stype.
If y is a set or list, then x is checked against each operand of y.
Note that x and "x" are considered to be of type suffixed(x) and suffixed("x"), respectively. Also note that parse will automatically simplify the balance, so "x6/2" and "x4!" is an "x" suffixed by the integers 3 and 24, respectively.
type_Z1,suffixed_Z,integer
true
typex1.32,suffixedx,float,integer
disconttanx,x
12π+π_Z1~
hastype,suffixed_B,_N,_NN,_Z,integer
dsolvediffyt,t=yt,yt
yt=c__1ⅇt
hastype,suffixed_C,integer
typex4/2,suffixedx,integer
See Also
parse
Download Help Document