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

abs

0

0

1

1

accumulate

0

0

2

3

acos

0

0

1

1

add

0

0

2

2

aj

0

0

3

3

all

0

0

1

128

and

0

0

2

2

any

0

0

1

128

append!

0

0

2

2

array

0

0

2

5

asin

0

0

1

1

asof

0

0

3

3

at

0

0

1

2

atan

0

0

1

1

avg

0

0

1

1

avgreduce

0

1

2

2

bar

0

0

2

2

between

0

0

2

2

bigarray

0

0

2

5

binsrch

0

0

2

2

bitAnd

0

0

2

2

bitOr

0

0

2

2

bitXor

0

0

2

2

bool

0

0

0

1

call

0

0

2

128

cast

0

0

2

2

ceil

0

0

1

1

cell

0

0

3

3

char

0

0

0

1

cj

0

0

3

3

$ typestr defs();
TABLE;

$ select * from defs() where name like "bit*";

name

isCommand

userDefined

minParamCount

maxParamCount

bitAnd

0

0

2

2

bitOr

0

0

2

2

bitXor

0

0

2

2

$ defs("bit*");

name

isCommand

userDefined

minParamCount

maxParamCount

bitAnd

0

0

2

2

bitOr

0

0

2

2

bitXor

0

0

2

2

$ defs("*sin");

name

isCommand

userDefined

minParamCount

maxParamCount

asin

0

0

1

1

sin

0

0

1

1

$ defs("?sin");

name

isCommand

userDefined

minParamCount

maxParamCount

asin

0

0

1

1