Functions

Functions and datatypes of arguments and produced values:
abs(N) : N                              # compute absolute value
acos(r1) : r2                           # compute arc cosine
any(c,s,i1,i2) : i3                     # locate initial character
args(p) : i                             # get number of procedure arguments
asin (r1) : r2                          # compute arc sine
atan (r1,r2) : r3                       # compute arc tangent
bal(c1,c2,c3,s,i1,i2) : i3,i4,...,in    # locate balanced characters
center(s1,i,s2) : s3                    # position string at center
char(i) : s                             # produce character
chdir(s) : n                            # change directory
close(f) : f                            # close file
collect(i1,i2) : n                      # perform garbage collection
copy(x1) : x2                           # copy value
cos(r1) : r2                            # compute cosine
cset(x)                                 # convert to cset
delay(i) : n                            # delay execution
delete(X,x) : X                         # delete element
detab(s1,i1,i2,...,in) : s2             # remove tabs
display(i,f) : n                        # display variables
dtor(r1) : r2                           # convert degrees to radians
entab(s1,i1,i2,...,in) : s2             # insert tabs
errorclear() : n                        # clear error indication
exit(i)                                 # exit program
exp(r1) : r2                            # compute exponential
find(s1,s2,i1,i2) : i3,i4,...,in        # find string
flush(f) : n                            # flush I/O buffer
function() : s1,s2,...,sn               # generate function names
get(L) : x                              # get value from list
getch() : s                             # get keyboard character
getche() : s                            # get and echo keyboard character
getenv(s1) : s2                         # get value of environment variable
iand(i1,i2) : i3                        # compute bit-wise and
icom(i1) : i2                           # compute bit-wise complement
image(x) : s                            # produce string image
insert(X,x1,x2) : X                     # insert element
integer(x) : i                          # convert to integer
ior(i1,i2) : i3                         # compute bit-wise inclusive or
ishift(i1,i2) : i3                      # shift bits
ixor(i1,i2) : i3                        # compute bit-wise exclusive or
kbhit() : n                             # check for keyboard character
key(T) : x1,x2,...,xn                   # generate keys from table
left(s1,i,s2) : s3                      # position string at left
list(i,x) : L                           # create list
loadfunc (s1,s2) : p                    # load external function
log(r1,r2) : r3                         # compute logarithm
many(c,s,i1,i2) : i3                    # locate many characters
map(s1,s2,s3) : s4                      # map characters
match(s1,s2,i1,i2) : i3                 # match initial string
member(X,x) : x                         # test for membership
move(i) : s                             # move scanning position
name(x) : s                             # produce name
numeric(x) : N                          # convert to numeric
open(s1,s2) : f                         # open file
ord(s) : i                              # produce ordinal
pop(L) : x                              # pop from list
pos(i1) : i2                            # test scanning position
proc(x,i) : p                           # convert to procedure
pull(L) : x                             # pull from list
push(L,x1,x2,...,xn) : L                # push onto list
put(L,x1,x2,...,xn) : L                 # put onto list
read(f) : s                             # read line
reads(f,i) : s                          # read string
real(x) : r                             # convert to real
remove(s) : n                           # remove file
rename(s1,s2) : n                       # rename file
repl(s1,i) : s2                         # replicate string
reverse(s1) : s2                        # reverse string
right(s1,i,s2) : s3                     # position string at right
rtod(r1) : r2                           # convert radians to degrees
runerr(i,x)                             # terminate with run-time error
seek(f,i) : f                           # seek to position in file
seq(i1,i2) : i3,i4,...                  # generate sequence of integers
serial(x) : i                           # produce serial number
set(L) : S                              # create set
sin(r1) : r2                            # compute sine
sort(X,i) : L                           # sort structure
sortf(X,i) : L                          # sort list or set by field
sqrt(r1) : r2                           # compute square root
stop(x1,x2,...,xn)                      # stop execution
string(x) : s                           # convert to string
system(s) : i                           # call system function
tab(i) : s                              # set scanning position
table(x) : T                            # create table
tan(r1) : r2                            # compute tangent
trim(s1,c) : s2                         # trim string
type(x) : s                             # produce type name
upto(c,s,i1,i2) : i3,i4,...,in          # locate characters
variable(s) : x                         # produce variable
where(f) : i                            # produce position in file
write(x1,x2,...,xn) : xn                # write line
writes(x1,x2,...,xn)                    # write string