Branch: Difference between revisions

Jump to navigation Jump to search
359 bytes added ,  06:53, 27 July 2020
(Created page with "{{Built-in|Branch|→}} is a primitive monadic function which provides a way to control execution flow in an APL programs. It is equivalent to GOTO...")
 
Line 28: Line 28:
<source lang=apl>
<source lang=apl>
       ⍝ While-Do construct
       ⍝ While-Do construct
       While:→(~B)/Done
       While: →(~B)/Done
       S1
       S1
       →While
       →While
Line 35: Line 35:
<source lang=apl>
<source lang=apl>
       ⍝ Repeat-Until construct
       ⍝ Repeat-Until construct
       Repeat:S2
       Repeat: S2
       →(~B)/Repeat
       →(~B)/Repeat
</source>
</source>
Note that <source inline lang=apl>Else</source>, <source inline lang=apl>End</source>, <source inline lang=apl>CaseN</source>, <source inline lang=apl>Next</source>, <source inline lang=apl>While</source>, <source inline lang=apl>Done</source>, <source inline lang=apl>Repeat</source> in the examples above are all user-defined labels rather than keywords.


==External links==
==External links==
trusted
69

edits

Navigation menu