Nice Share, I am yet to understand exactly when I may be using this but thanks for sharing such novel algorithms.
Tony On Tuesday, 12 March 2019 20:11:06 UTC+11, Arlen Beiler wrote: > > I just discovered something that I think is undocumented but could be > extremely useful! When arguments are passed to the macrocall widget, it > first processes the param substitutions of the macro, AND THEN processes > the variable substitutions. This means that you can pass in a variable > substitution as a paramater, like this: > > \define gt(a, b) $a$ $b$ +[nsort[]last[]remove[$b$]] > <$list filter=<<gt "$(window-width)$" "512">> variable="temp"> > > </$list> > > In case you're curious about the filter, it sorts the two arguments and if > the second one is larger the list will not output a DOM element. > > Enjoy! > Arlen > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e7ef3e67-2d89-496f-94f0-b3327e2502a3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.