Hi Jeremy, Then why doesn't this work?
\define nthnum() [enlist<myList>nth[$(enum)$]] <$vars myList="2 3 2 2" enumList="1 2 3 4 5"> <$list filter="[enlist<enumList>]" variable="enum"> <$wikify name=item mode=inline text='<$list filter="[enlist<myList>nth<enum>]"/>'> <<item>> </$wikify> </$list> </$vars> The outer layer is generating a unique list of numbers, and so can't be compacted. The wikify turns a string that should yield exactly one result. It gets called 5 separate times. So at no point should a single filter be able to compact the data. Yet the output compacts (e.g. 2 3 is the result not 2 3 2 2). My conclusion is that the entire <$list> widget must be compacting the results in addition to whatever compaction goes on at the filter level. Thanks, Mark On Tuesday, August 22, 2017 at 9:02:21 AM UTC-7, Jeremy Ruston wrote: > > Hi Mat, Coda, > > On 22 Aug 2017, at 16:41, codacoder...@outlook.com <javascript:> wrote: > > Yeah. If I recall, Jeremy said the listwidget is very complex and he is >> not in favour of introducing further complexity for it. I might have it >> mixed up with some other widget. Still, it is such a central widget so IMO >> it must either be very powerful or we need multiple niche widgets. >> >> > That does not surprise me at all. Maybe a new widget - $freelist ? > > > All of the logic around uniquifying lists actually happens within the > filter mechanism, not the list widget, which will happily process whatever > list it gets out of executing the filter. > > I think there’s been discussion on github about it. As usual, the problem > is figuring out a backwards compatible workaround… > > Best wishes > > Jeremy. > -- 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/b5f7a6f7-1a95-4c9f-9be0-97b3cc7de80d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.