SPECIAL SYMBOLS
cl
Assignment Arrow +
The assignment arrow causes APL to evaluate everything to the right of the arrow
and associate that value with the name to the left of the arrow. For example,
A+2+3 means that 2+3, or 5, is assigned to the name A. When A is used in a later
APL statement, it has a value of 5.
[:I
Branch Arrow -f
The branch arrow is used for the following:
To change the order in which the statements are executed in a user-defined
function. See Branching in Chapter 6 for more information on branching.
To resume execution of a suspended function (see Suspension in Chapter 7).
To clear the state indicator (see Stare lndicaror in Chapter 7).
The quad is used to ask for input and to display output. To display output, the quad
must appear immediately to the left of the assignment arrow. The value of the APL
expression to the right of the arrow is assigned to the quad and will be displayed.
For example:
'7
1.2
The 7 displayed is the value assigned to the quad. The 12 is the final evaluation of
the APL expression.
When used to ask for input, the quad can appear anywhere except to the immediate
left of the assignment arrow. Execution of the expression stops at the quad and re-
sumes when an expression is entered to replace the quad. When a quad is encountered,
the quad and colon symbols (0 : ) are displayed to indicate that input is requested.
For example:
See Chapter 6 for more information on quad input or output within a user-defined
function.
120
cl
Assignment Arrow +
The assignment arrow causes APL to evaluate everything to the right of the arrow
and associate that value with the name to the left of the arrow. For example,
A+2+3 means that 2+3, or 5, is assigned to the name A. When A is used in a later
APL statement, it has a value of 5.
[:I
Branch Arrow -f
The branch arrow is used for the following:
To change the order in which the statements are executed in a user-defined
function. See Branching in Chapter 6 for more information on branching.
To resume execution of a suspended function (see Suspension in Chapter 7).
To clear the state indicator (see Stare lndicaror in Chapter 7).
The quad is used to ask for input and to display output. To display output, the quad
must appear immediately to the left of the assignment arrow. The value of the APL
expression to the right of the arrow is assigned to the quad and will be displayed.
For example:
'7
1.2
The 7 displayed is the value assigned to the quad. The 12 is the final evaluation of
the APL expression.
When used to ask for input, the quad can appear anywhere except to the immediate
left of the assignment arrow. Execution of the expression stops at the quad and re-
sumes when an expression is entered to replace the quad. When a quad is encountered,
the quad and colon symbols (0 : ) are displayed to indicate that input is requested.
For example:
See Chapter 6 for more information on quad input or output within a user-defined
function.
120