diff options
Diffstat (limited to 'macros/latex/contrib/functional/functional.tex')
-rw-r--r-- | macros/latex/contrib/functional/functional.tex | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/macros/latex/contrib/functional/functional.tex b/macros/latex/contrib/functional/functional.tex index 33d9a53f19..3b36c8579a 100644 --- a/macros/latex/contrib/functional/functional.tex +++ b/macros/latex/contrib/functional/functional.tex @@ -3,7 +3,7 @@ \documentclass[oneside]{book} \usepackage[a4paper,margin=2.5cm]{geometry} -\newcommand*{\myversion}{2023A} +\newcommand*{\myversion}{2024A} \newcommand*{\mydate}{Version \myversion\ (\the\year-\mylpad\month-\mylpad\day)} \newcommand*{\mylpad}[1]{\ifnum#1<10 0\the#1\else\the#1\fi} @@ -207,8 +207,8 @@ Both examples calculate first the square of $5$ and produce $25$, then calculate the square of $25$ and produce $625$. In contrast to \verb!expl3!, this \verb!functional! package does evaluation of functions from inside to outside, -which means composition of functions works like othe programming languages -such as \verb!Lua! or \verb!JavsScript!. +which means composition of functions works like other programming languages +such as \verb!Lua! or \verb!JavaScript!. You can define new functions with \cs{prgNewFunction} command. To make composition of functions work as expected, @@ -317,7 +317,7 @@ print(a) ---- 1 Same as \verb!expl3!, the names of local variables \emph{must} start with \verb!l!, while names of global variables \emph{must} start with \verb!g!. The difference is that \verb!functional! package provides only one function for setting -both local and global varianbles of the same type, +both local and global variables of the same type, by checking leading letters of their names. So for integer variables, you can write \verb!\intSet\lTmpaInt{1}! and \verb!\intSet\gTmpbInt{2}!. @@ -481,7 +481,7 @@ and many expansion functions for expanding them, which are necessary for power u Within \verb!functional! package, there are only three variants (\verb!c!, \verb!e!, \verb!V!) are provided, and these variants are defined -as functions (\cs{expName}, \cs{expWhole}, \cs{expValue}, respetively), +as functions (\cs{expName}, \cs{expWhole}, \cs{expValue}, respectively), which are easier to use for regular users. \begin{demohigh} @@ -1719,9 +1719,9 @@ If the \meta{token list} is blank, the result is empty. \section{Mapping over Token Lists} -All mappings are done at the current group level, \emph{i.e.} any -local assignments made by the \meta{function} or \meta{code} discussed -below remain in effect after the loop. +%All mappings are done at the current group level, \emph{i.e.} any +%local assignments made by the \meta{function} or \meta{code} discussed +%below remain in effect after the loop. %\begin{function}{\tlMapFunction} %\begin{syntax} @@ -2641,9 +2641,9 @@ $-1$ is the right-most character, \emph{etc.} \section{Mapping over Strings} -All mappings are done at the current group level, \emph{i.e.} any -local assignments made by the \meta{function} or \meta{code} discussed -below remain in effect after the loop. +%All mappings are done at the current group level, \emph{i.e.} any +%local assignments made by the \meta{function} or \meta{code} discussed +%below remain in effect after the loop. %\begin{function}{\strMapFunction,\strVarMapFunction} %\begin{syntax} |