Mark, Nifty code. I still think it should be trivial for the macro code to provide an all params parameter? Then it could be enlisted.
eg; \define h(t1 t2 t3 t4 t5 t6 t7 t8 t9 t10) Use $t1$ $t6$ etc or $allparams$ to get every parameter in the order listed with or without a name. Arguably if it has a name as a name="value" pair, or just "value" But I could not raise an interest in this when I last tried. It would open up a set of possible algorithms currently a little more dificult even impossible in some cases. Regards Tony On Wednesday, April 15, 2020 at 1:26:10 PM UTC+10, Mark S. wrote: > > > > On Tuesday, April 14, 2020 at 4:35:18 PM UTC-7, Mat wrote: >> >> I have a feeling the range operator should be usable here but not sure >> how. >> >> > You're right. The range operator can make the second part of the macro > even simpler: > > \define h(t1 t2 t3 t4 t5 t6 t7 t8 t9 t10) > <$vars un="__"> > <mark> > <$list filter="[range[10]] > +[addprefix[t]addprefix<un>addsuffix<un>getvariable[]]" variable="myvar"> > <<myvar>> > </$list> > </mark> > </$vars> > \end > > So now if you want to add parameters, you just need to add parameters and > adjust the "range" operator to match. > > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6ccd0d09-6cc0-43a2-ac17-2cc3f15d4087%40googlegroups.com.

