Search found 1 match

by alansd
Sat Oct 02, 2010 11:29 am
Forum: General
Topic: A question about loop/recursion from texbook
Replies: 1
Views: 1440

A question about loop/recursion from texbook

Hi,

I'm learning TeX from the texbook. I tried to write a loop that is similar to part of the solution to exercise 11.5 (on page 215):
\def\dolist{\afterassignment\dodolist\let\next= }
\def\dodolist{\ifx\next0 \let\again\relax \else
[\next]\let\again\dolist \fi \again}

\dolist 1 2 3 0
Then the ...