summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/vhistory/en_sets.tex
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2007-11-16 11:36:27 +0000
committerNorbert Preining <preining@logic.at>2007-11-16 11:36:27 +0000
commit4adbea2c56b6d6306b139ba9de0b60e4e0a2dc26 (patch)
tree9d19c15d43a7d1d3e6a45321fe288d6267e337ec /Master/texmf-dist/doc/latex/vhistory/en_sets.tex
parentb7899e95726c10175f384c1bf7baadbab493336d (diff)
vhistory 2007-07-21
git-svn-id: svn://tug.org/texlive/trunk@5467 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/vhistory/en_sets.tex')
-rw-r--r--Master/texmf-dist/doc/latex/vhistory/en_sets.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/latex/vhistory/en_sets.tex b/Master/texmf-dist/doc/latex/vhistory/en_sets.tex
index 58f02e59d10..df14b3bdf88 100644
--- a/Master/texmf-dist/doc/latex/vhistory/en_sets.tex
+++ b/Master/texmf-dist/doc/latex/vhistory/en_sets.tex
@@ -3,7 +3,7 @@
As described in the introduction, sets was designed to support set operations. The elements of a set are normally simple Text, but you can insert commands in a set, too.
These commands will---except when printing the set---not expanded.
The usage of braces (`\{' and `\}') unfortunately doesn't work. In this case you have to define a shortcut that doesn't need braces. However, Parameters without braces work.
-``\verb|H"agar|'' is therefore a valid element of a set. ``\verb|\endset|'' can not be part of a set.
+``\verb|H"agar|'' is therefore a valid element of a set. ``\verb|\endset|'' and ``\verb|\empty|'' can not be part of a set.
As a document has only a few authors, not much effort was put in improving efficiency.
Sets should therefore be relatively small. If you nevertheless try to create a set with hundreds or thousands of items, \TeX's stack might overflow.
@@ -72,7 +72,7 @@ If you determine the size of set $L$, the result\sizeofset{\sL}\is{mycounter}---
\paragraph{Testing for membership:}By using the command\\
\mbox{}\hspace{2em}\verb$\iselementofset{$$e$\verb$}{$$S$\verb$}$\\
-you can check, whether $e \in S$ is true. The effort is $O(1)$, because all work is done by the pattern matching of \TeX. The sequence\\
+you can check, whether $e \in S$ is true. The effort is $O(1)$ because all work is done by the pattern matching of \TeX. The sequence\\
\mbox{}\hspace{2em}\verb$\if \iselementofset{Bob}{\sC}Yes\else No\fi$\\
would result in the output ``\if \iselementofset{Bob}{\sC}Yes\else No\fi'', the same test with set $D$ in ``\if \iselementofset{Bob}{\sD}Yes\else No\fi''.
@@ -138,7 +138,7 @@ After execution of the command, $R$ contains the sorted set. The sorting is done
At sorting, the elements are compared as they are, i.\,e. possibly contained macros are not expanded but compared by their name (including the backslash).
-\paragraph{Removing duplicates:} The operations \emph{only} works on sorted sets! You actually will not need it very often, because the creation of a set using \verb|\newset| does the work automatically (by using this macro). However, I decided to make this macro available to public; probably sometimes someone really needs it.
+\paragraph{Removing duplicates:} The operations \emph{only} works on sorted sets! You actually will not need it very often because the creation of a set using \verb|\newset| does the work automatically (by using this macro). However, I decided to make this macro available to public; probably sometimes someone really needs it.
Duplicate removal is called with:\\
\mbox{}\hspace{2em}\verb|\deleteduplicates{|$S$\verb|}{|$R$\verb|}|,\\
with $R$ being the result set and $S$ being the sorted set, whose duplicates shall be removed.
@@ -173,4 +173,4 @@ The given complexity classes can help you to arrange a set of operations in the
\caption{Complexity classes of set operations}%
\label{tab:complexity}%
\end{center}
-\end{table} \ No newline at end of file
+\end{table}