> On 24 Aug 2023, at 06:03, Wolfgang Schuster 
> <wolfgang.schuster.li...@gmail.com> wrote:
>> […]
> 
> I would drop the column check in this case.
> 
>     for i = 0,9 do
>         context.startxrow()
>             context.startxcell()
>                 context(i)
>             context.stopxcell()
>             context.startxcell()
>                 context(math.mod(i*i,10))
>             context.stopxcell()
>             context.startxcell()
>                 context(i)
>             context.stopxcell()
>             context.startxcell()
>                 context(math.mod(2*i*i,10))
>             context.stopxcell()
>         context.stopxrow()
>     end
> 
> Wolfgang


Indeed this is much more elegant… It feels so good to be on this list and learn 
from such insights :-)

Best regards: Otared
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

Reply via email to