On 12/24/2024 2:55 PM, vm via ntg-context wrote:
On 24/12/2024 12:53, Hans Hagen wrote:
your choice (i use it here to practice and test)
There seems to be a difference in behavior too. In the example the \dorecurse places extra space before the B
.Floris
8<---
\starttext
\starttabulate[|c|] \HL\expandedrepeat 4 {\NC B\AR\HL} \stoptabulate
\starttabulate[|c|] \HL\dorecurse{4}{\NC B\AR\HL} \stoptabulate
\stoptext
--->8
Well, there is your x-mas puzzle then \starttext \writestatus{!!!!}{} \writestatus{!!!!}{\string\expandedrepeat} \writestatus{!!!!}{} \starttabulate[|c|] \HL\tracingall\expandedrepeat 1 {\NC B\AR\HL} \stoptabulate \writestatus{!!!!}{} \writestatus{!!!!}{} \writestatus{!!!!}{\string\dorecurse} \starttabulate[|c|] \HL\tracingall\dorecurse{1}{\NC B\AR\HL} \stoptabulate \writestatus{!!!!}{} \writestatus{!!!!}{\string\localcontrolledrepeat} \writestatus{!!!!}{} \starttabulate[|c|] \HL\tracingall\localcontrolledrepeat 1 {\NC B\AR\HL} \stoptabulate \writestatus{!!!!}{} \writestatus{!!!!}{\string\expandedloop} \writestatus{!!!!}{} \starttabulate[|c|] \HL\tracingall\expandedloop 1 1 1 {\NC B\AR\HL} \stoptabulate \writestatus{!!!!}{} \writestatus{!!!!}{\string\dostepwiserecurse} \writestatus{!!!!}{} \starttabulate[|c|] \HL\tracingall\dostepwiserecurse{1}{1}{1}{\NC B\AR\HL} \stoptabulate \writestatus{!!!!}{} \writestatus{!!!!}{DONE} \writestatus{!!!!}{} \stoptext Also, guess which ones are more efficient. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------