diff --git a/chapters/functions.tex b/chapters/functions.tex index 8501eb2a9..edd5a5bc9 100644 --- a/chapters/functions.tex +++ b/chapters/functions.tex @@ -841,12 +841,13 @@ \subsection{Scalar Functions Applied to Array Arguments}\label{scalar-functions- fashion, and the result has the type specified by the function definition. \item - The result of the function call expression is an $n$-dimensional array with the same dimension sizes as the foreach arguments. Each element \lstinline!ei!, \ldots, \lstinline!j! is the result of applying \lstinline!f! to arguments constructed from the original arguments in the following way: + The result of the function call expression is an $n$-dimensional array \lstinline!e! with the same dimension sizes as the foreach arguments. + Each element \lstinline!e[$i$, $\ldots$, $j$]! is the result of applying \lstinline!f! to arguments constructed from the original arguments in the following way: \begin{itemize} \item If the argument is not a foreach argument, it is used as-is. \item - If the argument is a foreach argument, the element at index \lstinline![i, $\ldots$, j]! is used. + If the argument is a foreach argument, the element at index \lstinline![$i$, $\ldots$, $j$]! is used. \end{itemize} \end{enumerate}