defs
Syntax
defs([X])
Arguments
X is a string. It supports wildcard symbols "%" and "?". "%" means 0, 1 or multiple characters and "?" means 1 character.
Details
- If X is not specified, return all functions in the system as a table.
- If X is specified, return all functions with names consistent with the pattern of X.
Examples
defs();
name | isCommand | userDefined | minParamCount | maxParamCount | syntax |
---|---|---|---|---|---|
!=_2 | 0 | 0 | 2 | 2 | (X, Y) |
!_1 | 0 | 0 | 1 | 1 | (X) |
$_2 | 0 | 0 | 2 | 2 | (obj, type) |
%_2 | 0 | 0 | 2 | 2 | (X, Y) |
&&_2 | 0 | 0 | 2 | 2 | (X, Y) |
&_2 | 0 | 0 | 2 | 2 | (X, Y) |
**_2 | 0 | 0 | 2 | 2 | (X, Y) |
*_2 | 0 | 0 | 2 | 2 | (X, Y) |
+_2 | 0 | 0 | 2 | 2 | (X, Y) |
-_1 | 0 | 0 | 1 | 1 | (X) |
... |
typestr defs();
// output
IN-MEMORY TABLE;
select * from defs() where name like "bit%";
name | isCommand | userDefined | minParamCount | maxParamCount | syntax |
---|---|---|---|---|---|
bitAnd | 0 | 0 | 2 | 2 | (X, Y) |
bitNot | 0 | 0 | 1 | 1 | (X) |
bitOr | 0 | 0 | 2 | 2 | (X, Y) |
bitXor | 0 | 0 | 2 | 2 | (X, Y) |
defs("bit%");
name | isCommand | userDefined | minParamCount | maxParamCount | syntax |
---|---|---|---|---|---|
bitAnd | 0 | 0 | 2 | 2 | (X, Y) |
bitNot | 0 | 0 | 1 | 1 | (X) |
bitOr | 0 | 0 | 2 | 2 | (X, Y) |
bitXor | 0 | 0 | 2 | 2 | (X, Y) |
defs("%sin");
name | isCommand | userDefined | minParamCount | maxParamCount | syntax |
---|---|---|---|---|---|
asin | 0 | 0 | 1 | 1 | (X) |
sin | 0 | 0 | 1 | 1 | (X) |
defs("?sin");
name | isCommand | userDefined | minParamCount | maxParamCount | syntax |
---|---|---|---|---|---|
asin | 0 | 0 | 1 | 1 | (X) |