System Function STOP: Difference between revisions
From NARS2000
Jump to navigationJump to search
(Created page with "<h1>Quad Stop - '''⎕STOP''' (System Function)</h1> ==Monadic Function — Query STOP Property== <table border="1" cellpadding="5" cellspacing="0" rules="...") |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 17: | Line 17: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td><apll>R</apll> is a character scalar or vector name of a user-defined function/operator or Magic Function.</td> | <td><apll>R</apll> is a character scalar or vector name of a user-defined function/operator/hyperator, anonymous function, or Magic Function.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td><apll>Z</apll> is a numeric vector of line numbers where the function named in <apll>R</apll> stops execution when encountered. A value of <apll>0</apll> in the result means that execution stops just prior to leaving the function, allowing the user to examine the result and all local variables.</td> | <td><apll>Z</apll> is a numeric vector of line numbers where the function named in <apll>R</apll> stops execution when the corresponding line number is encountered. A value of <apll>0</apll> in the result means that execution stops just prior to leaving the function, allowing the user to examine the result and all local variables.</td> | ||
</tr> | </tr> | ||
Line 28: | Line 28: | ||
<p>For example:</p> | <p>For example:</p> | ||
< | <apll><pre> | ||
0 1 2 3 | ⎕STOP 'f' | ||
0 1 2 3 | |||
0 2</ | ⎕STOP '#DydDotDot' | ||
0 2</pre></apll> | |||
==Dyadic Function — Set STOP Property== | ==Dyadic Function — Set STOP Property== | ||
Line 52: | Line 50: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td><apll>R</apll> is a character scalar or vector name of a user-defined function/operator or Magic Function.</td> | <td><apll>R</apll> is a character scalar or vector name of a user-defined function/operator, anonymous function, or Magic Function.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td><apll>L</apll> is a numeric vector of line numbers in the named function where execution is to stop when | <td><apll>L</apll> is a numeric vector of line numbers in the named function where execution is to stop when the corresponding line number is encountered. If <apll>L</apll> is an empty vector, the STOP property of the named function is removed from all line numbers. If a number in <apll>L</apll> does not correspond to a line number in the named function, that number is ignored.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td><apll>Z</apll> is a numeric vector subset of <apll>L</apll> where the named function stops execution when encountered. The values in the result are in ascending order. A value of <apll>0</apll> in the result means that execution stops just prior to leaving the function, allowing the user to examine the result and all local variables. The Display property of the result is OFF, meaning that the result does not display unless explicitly forced such as with <apll>⎕←</apll>.</td> | <td><apll>Z</apll> is a numeric vector subset of <apll>L</apll> where the named function stops execution when the corresponding line number is encountered. The values in the result are in ascending order. A value of <apll>0</apll> in the result means that execution stops just prior to leaving the function, allowing the user to examine the result (if any) and all local variables. The Display property of the result is OFF, meaning that the result does not display unless explicitly forced such as with <apll>⎕←</apll>.</td> | ||
</tr> | </tr> | ||
Line 66: | Line 64: | ||
<p>For example:</p> | <p>For example:</p> | ||
< | <apll><pre> | ||
0 1 2 3 | ⎕←0 1 2 3 ⎕STOP 'f' | ||
0 1 2 3 | |||
0 1 2 3 4 5</ | ⎕←0 2 3 4 5 6 7 8 9 ⎕STOP '#DydDotDot' | ||
0 1 2 3 4 5</pre></apll> |
Latest revision as of 09:47, 19 March 2019
Quad Stop - ⎕STOP (System Function)
Monadic Function — Query STOP Property
|
||||
Z is a numeric vector of line numbers where the function named in R stops execution when the corresponding line number is encountered. A value of 0 in the result means that execution stops just prior to leaving the function, allowing the user to examine the result and all local variables. |
For example:
⎕STOP 'f' 0 1 2 3 ⎕STOP '#DydDotDot' 0 2
Dyadic Function — Set STOP Property
|
||||
R is a character scalar or vector name of a user-defined function/operator, anonymous function, or Magic Function. | ||||
L is a numeric vector of line numbers in the named function where execution is to stop when the corresponding line number is encountered. If L is an empty vector, the STOP property of the named function is removed from all line numbers. If a number in L does not correspond to a line number in the named function, that number is ignored. | ||||
Z is a numeric vector subset of L where the named function stops execution when the corresponding line number is encountered. The values in the result are in ascending order. A value of 0 in the result means that execution stops just prior to leaving the function, allowing the user to examine the result (if any) and all local variables. The Display property of the result is OFF, meaning that the result does not display unless explicitly forced such as with ⎕←. |
For example:
⎕←0 1 2 3 ⎕STOP 'f' 0 1 2 3 ⎕←0 2 3 4 5 6 7 8 9 ⎕STOP '#DydDotDot' 0 1 2 3 4 5