Details of Icon Functions A through D
Produces the absolute value of N.
Produces the arc cosine of r1 in the range of 0 to pi for r1 in the
range of -1 to 1.
See also: cos()
Succeeds and produces i1 + 1 if s[i1] is in c and i2 > i1, but fails
otherwise.
Defaults:
s &subject
i1 &pos if s defaulted, otherwise 1
i2 0
See also: many() and match()
Produces the number of arguments for procedure p. For built-in
procedures with a variable number of arguments, the value produced is
-1. For declared procedures with a variable number of arguments, the
value returned is the negative of the number of formal parameters.
See also: proc()
Produces the arc sine of r1 in the range of -pi/2 to +pi/2 for r1 in
the range of -1 to 1.
See also: sin()
Produces the arc tangent of r1/r2 in the range -pi/2 to pi/2 with the
sign of r1.
Default:
r2 1.0
See also: tan()
Generates the sequence of integer positions in s preceding a character
of c1 in s[i1:i2] that is balanced with respect to the characters of c2
and c3, but fails if there is no such position.
Defaults:
c1 &cset
c2 '('
c3 ')'
s &subject
i1 &pos if s defaulted, otherwise 1
i2 0
See also: find() and upto()
Produces a string of size i in which s1 is centered, with s2 used for
padding at left and right as necessary.
Defaults:
i 1
s2 " " (blank)
See also: left() and right()
Produces a string of length 1 consisting of the character whose
internal representation is i.
See also: ord()
Changes the directory to s but fails if there is no such directory
or if the change cannot be made.
Produces f after closing it unless f was opened with the pipe ("p")
option, in which case the integer exit status of the command is
returned.
See also: open()
Causes a garbage collection in region i1, requesting i2 bytes of space
in that region. It fails if the requested space is not available. The
regions are identified as follows:
1 Static region
2 String region
3 Block region
If i1 is 0, a collection is done, but no region is identified and i2
has no effect. The value of i2 is ignored for the static region.
Defaults:
i1 0
i2 0
Produces a copy of x1 if x1 is a structure; otherwise it produces x1.
Produces the cosine of r1 in radians.
See also: acos()
Produces a cset resulting from converting x, but fails if the
conversion is not possible.
Delays execution i milliseconds.
If X is a set, deletes x from X. If X is a table, deletes the element
for key x from X. Produces X.
See also: insert() and member()
Produces a string based on s1 in which each tab character is replaced
by one or more blanks. Tab stops are at i1, i2, ..., in, with
additional stops obtained by repeating the last interval.
Default:
i1 9
See also: entab()
Writes the image of the current co-expression and the values of the
local variables in the current procedure call. If i > 0, the local
variables in the i preceding procedure calls are displayed as well.
After all local variables are displayed, the values of global variables
are displayed. Output is written to f.
Defaults:
i &level
f &errout
Produces the radian equivalent of r1 given in degrees.
See also: rtod()