4,493
edits
Line 32: | Line 32: | ||
where ''broken'' means interrupted by one or more [[diamond]]s (<source lang=apl inline>⋄</source>) or line breaks (outside of [[dfn]]s). | where ''broken'' means interrupted by one or more [[diamond]]s (<source lang=apl inline>⋄</source>) or line breaks (outside of [[dfn]]s). | ||
* A ''broken'' round parenthesis creates a [[vector]], | * A ''broken'' round parenthesis creates a [[namespace]] if every diamond/line break-separated statement is a ''name-value pair''. | ||
* A ''broken'' round parenthesis creates a [[vector]], if every diamond/line break-separated statement is a value expression. In that case, every such statement forms an [[element]] in the resulting vector. | |||
* A ''broken'' square bracket creates a an [[array]], where every diamond/line break-separated statement forms a [[major cell]] in the resulting array. | * A ''broken'' square bracket creates a an [[array]], where every diamond/line break-separated statement forms a [[major cell]] in the resulting array. | ||
* <source lang=apl inline>()</source> is equivalent to <source lang=apl inline>(⎕NS 0⍴⊂'')</source> | * <source lang=apl inline>()</source> is equivalent to <source lang=apl inline>(⎕NS 0⍴⊂'')</source> | ||
* A ''name-value pair'' consist of a valid APL identifer, followed by a <source lang=apl inline>:</source> and a value expression. | |||
=== Formal syntax === | === Formal syntax === |