APL2C: Difference between revisions
Jump to navigation
Jump to search
(Compiled APL links against a shared library for primitives) |
m (→Control structures: Link to Del) |
||
Line 22: | Line 22: | ||
== Control structures == | == Control structures == | ||
[[Control structure]]s in APL2C are written using the <syntaxhighlight lang=apl inline>∇</syntaxhighlight> | [[Control structure]]s in APL2C are written using the [[Del]] character <syntaxhighlight lang=apl inline>∇</syntaxhighlight>, which is not used for [[defined function|function definition]] because this is initiated with editor interaction rather than source code. All control structures consist of an opening <syntaxhighlight lang=apl inline>∇</syntaxhighlight> followed by an expression, and closed with <syntaxhighlight lang=apl inline>∇</syntaxhighlight> alone. For example, the following structure doubles <syntaxhighlight lang=apl inline>X</syntaxhighlight> if it's less than 3. | ||
<syntaxhighlight lang=apl> | <syntaxhighlight lang=apl> | ||
∇X<3 | ∇X<3 |