Commit 23b158d1 authored by Attila Lendvai's avatar Attila Lendvai
Browse files

Renamed doc files and added Boolean Tests subsection

darcs-hash:09cedafbc6986fd35e1f73865b8e5ef6103c13c7
parent 78d4219d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
SOURCES=iterate-bare.tex iter-man.tex
DUMMY_INDEXES=iter-man.ind
SOURCES=iterate-bare.tex iterate-manual.tex
DUMMY_INDEXES=iterate-manual.ind
MKIDX=makeindex
MKIDXFLAGS=-l
LATEX=latex

all: iter-bare.ps iter-man.ps iter-bare.pdf iter-man.pdf
all: iterate-bare.pdf iterate-manual.pdf iterate-bare.ps iterate-manual.ps

%.dvi: %.tex
	touch $*.ind $*.idx
+0 −0

File moved.

+27 −4
Original line number Diff line number Diff line
@@ -1031,6 +1031,29 @@ function, then it is called on ~expr~ instead of being evaluated.

\end{clauses}

\subsubsection{Boolean Tests}

\begin{clauses}

\clausex{first-iteration-p}{}
Returns |t| in the first cycle of the loop, otherwise \nil.

\clausex{first-time-p}{}
Returns |t| the first time the expression is evaluated, and then \nil\ forever.
This clause comes handy when printing (optional) elements separated
by a comma:

\begin{program}
(iter (for el in '(nil 1 2 nil 3))
      (when el
        (unless (first-time-p)
          (princ ", "))
        (princ el)))
\end{program}
produces |"1, 2, 3"|.

\end{clauses}

\subsubsection{Aggregated Boolean Tests}

\begin{clauses}
@@ -2024,19 +2047,19 @@ Siskind helped ferret out many bugs.

%\begin{theindex}
% The index files must be generated with the genindex program
% or from makeindex iter-man.idx which creates iter-man.ind.
% or from makeindex iterate-manual.idx which creates iterate-manual.ind.

%\baselineskip\normalbaselineskip
%\advance\baselineskip by -2pt

\input{iter-man.ind}
\input{iterate-manual.ind}

%\underline{Clauses}
%\input{iter-man.clindex}
%\input{iterate-manual.clindex}
%
%\indexspace
%\underline{Lisp}
%\input{iter-man.lispindex}
%\input{iterate-manual.lispindex}

%\end{theindex}