Array notation: Difference between revisions

Jump to navigation Jump to search
8 bytes added ,  17:08, 9 May 2021
No edit summary
Line 24: Line 24:
</source>
</source>
== Description ==
== Description ==
The notation is added to the language by giving meaning to previously invalid statements. The added syntax consists of three constructs that are currently SYNTAX ERRORs:
The notation is added to the language by giving meaning to previously invalid statements. The added syntax consists of three constructs that are currently [[SYNTAX ERROR]]s:


* ''broken'' round parentheses
* ''broken'' round parentheses
Line 30: Line 30:
* empty round parentheses: <source lang=apl inline>()</source>
* empty round parentheses: <source lang=apl inline>()</source>


where ''broken'' means interrupted by one or more <source lang=apl inline>⋄</source> or line breaks (outside of dfns).
where ''broken'' means interrupted by one or more <source lang=apl inline>⋄</source> or line breaks (outside of [[dfn]]s).


* A ''broken'' round parenthesis creates a [[vector]], where every diamond/line break-separated statement forms an [[element]] in the resulting vector.
* A ''broken'' round parenthesis creates a [[vector]], where every diamond/line break-separated statement forms an [[element]] in the resulting vector.

Navigation menu