Skip to content

Commit

Permalink
Update chapters/arrays.tex
Browse files Browse the repository at this point in the history
Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
  • Loading branch information
HansOlsson and henrikt-ma committed Jul 31, 2023
1 parent f7b4d40 commit bc7a1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapters/arrays.tex
Expand Up @@ -948,7 +948,7 @@ \section{Indexing}\label{array-indexing}\label{indexing}
If the number of index arguments is smaller than the number of dimensions of the array, the trailing indices will use `\lstinline!:!'.

It is possible to index a general expression by enclosing it in parenthesis.
Note that the grammar is left factored and allows indexing of \lstinline[language=grammar]!output-expression-list!, but only indexing of an expression is syntactically valid.
Note that while the subscripts are applied to a \lstinline[language=grammar]!output-expression-list! in the grammar, it is only semantically valid when the \lstinline[language=grammar]!output-expression-list! represents an expression.

It is also possible to use the array access operator to assign to element/elements of an array in algorithm sections.
This is called an \firstuse[assignment statement!indexed]{indexed assignment statement}.
Expand Down

0 comments on commit bc7a1cf

Please sign in to comment.