diff options
Diffstat (limited to 'macros/latex/contrib/algorithm2e/doc/algorithm2e_exfor.tex')
-rw-r--r-- | macros/latex/contrib/algorithm2e/doc/algorithm2e_exfor.tex | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/macros/latex/contrib/algorithm2e/doc/algorithm2e_exfor.tex b/macros/latex/contrib/algorithm2e/doc/algorithm2e_exfor.tex new file mode 100644 index 0000000000..d8667fc333 --- /dev/null +++ b/macros/latex/contrib/algorithm2e/doc/algorithm2e_exfor.tex @@ -0,0 +1,10 @@ +\SetAlgoLined +\ForAll{elements of $S_1$}{ + remove an element e from $S_1$\; + put e in the set $S_2$\; + } +\lFor{i=1 \emph{\KwTo}max}{mark i}\; +\ForEach{$e$ in the set}{ + put $e$ in ${\cal E}$\; + mark $e$\; +} |