Statement separator: Difference between revisions

From APL Wiki
Jump to navigation Jump to search
(Statement Separator Page for the Diamond Glyph)
 
(Formatting)
Line 7: Line 7:
In [Iverson's Dictionary of APL](https://www.jsoftware.com/papers/APLDictionary1.htm#3e) he states "expressions using the statement separator (⋄) can be mimicked by expressions using the verb (left)[Identity]. The primary difference is that the separation imposed by ⊣ follows the normal rules for order of execution." APL 700 uses a semicolon to achieve the same effect as the left ⊣.
In [Iverson's Dictionary of APL](https://www.jsoftware.com/papers/APLDictionary1.htm#3e) he states "expressions using the statement separator (⋄) can be mimicked by expressions using the verb (left)[Identity]. The primary difference is that the separation imposed by ⊣ follows the normal rules for order of execution." APL 700 uses a semicolon to achieve the same effect as the left ⊣.


#Documentation
 
[Dyalog](https://help.dyalog.com/latest/index.htm#Language/Defined%20Functions%20and%20Operators/TradFns/Statements.htm)
=== Documentation ===
[BQN](https://mlochbaum.github.io/BQN/doc/token.html#separators)
* Dyalog: [https://help.dyalog.com/latest/index.htm#Language/Defined%20Functions%20and%20Operators/TradFns/Statements.htm]
[Nars2000](http://wiki.nars2000.org/index.php?title=Diamond)
* APLX: [https://microapl.com/apl_help/ch_020_020_930.htm]
[APLX](https://microapl.com/apl_help/ch_020_020_930.htm)
* Nars2000: [http://wiki.nars2000.org/index.php?title=Diamond]
* [https://mlochbaum.github.io/BQN/doc/token.html#separators BQN]

Revision as of 21:28, 10 November 2022

Statement Separator (⋄) often called by the name of its glyph Diamond, allows you to place multiple statements on a single line. It works both inside a function and directly within the interpreter.

It is important to note that using a Statement Separator(⋄) forces the interpreter to read from left to right. Each separated statement will be read as if it is on it's own line.

When tracing errors within a line containing diamonds, statements to the right of the caret have not yet been executed.

In [Iverson's Dictionary of APL](https://www.jsoftware.com/papers/APLDictionary1.htm#3e) he states "expressions using the statement separator (⋄) can be mimicked by expressions using the verb (left)[Identity]. The primary difference is that the separation imposed by ⊣ follows the normal rules for order of execution." APL 700 uses a semicolon to achieve the same effect as the left ⊣.


Documentation