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 |
|
$_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 |
|
=_2 |
0 |
0 |
2 |
2 |
(X, Y) |
.._2 |
0 |
0 |
2 |
2 |
(start, end) |
._2 |
0 |
0 |
2 |
2 |
(obj, keys) |
/_2 |
0 |
0 |
2 |
2 |
(X, Y) |
:_2 |
0 |
0 |
2 |
2 |
(first, second) |
<=_2 |
0 |
0 |
2 |
2 |
(obj1, obj2) |
<<_2 |
0 |
0 |
2 |
2 |
(X, bits) |
<=_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, bits) |
>_2 |
0 |
0 |
2 |
2 |
(X, Y) |
@_2 |
0 |
0 |
2 |
2 |
(X, index) |
AND |
0 |
0 |
2 |
2 |
(X, Y) |
BETWEEN |
0 |
0 |
2 |
2 |
(X, Y) |
IN |
0 |
0 |
2 |
2 |
(X, Y) |
LIKE |
0 |
0 |
2 |
2 |
(X, pattern) |
NOT |
0 |
0 |
1 |
1 |
|
… |
$ typestr defs();
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 |
|
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 |
|
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 |
|
sin |
0 |
0 |
1 |
1 |
$ defs("?sin");
name |
isCommand |
userDefined |
minParamCount |
maxParamCount |
syntax |
---|---|---|---|---|---|
asin |
0 |
0 |
1 |
1 |