Hi Mark > How does it flatten it, when [enlist<myList>nth<enum>] is being called one at > a time for each <enum> value and only generates one value? How can the > *filter* be flattening it, when the filter should be generating exactly *one* > item each time it is called? That is [enlist[1 2 3 4 5]nth[3] should only > generate "3". So there is nothing to flatten. I even wrapped the render in a > Wikify widget to try make sure there was no optimization cheating going on. > It sure seems like flattening is occurring at the <$list>contents</$list> > level rather than at the filter level, though it may be occurring at both > levels.
It is the “enlist” filter operator itself that is doing the duplicate removal here. [enlist[2 3 2 2]] yields 2 3, as you can verify in the advanced search filter page. Best wishes Jeremy. > > Thanks, > Mark > > On Tuesday, August 22, 2017 at 10:02:52 AM UTC-7, Jeremy Ruston wrote: > Hi Mark > >> BUT there are NO duplicate entries. Take a look at the code again. I >> enumerate a unique set of values (1 2 3 4 5) with enlist. There are no >> duplicates. THEN I call wikify on a sub-list. The results get crushed >> anyways. > > I think the problem is that [enlist<myList>nth<enum>] in the nested list > widget will flatten myList from 2 3 2 2 to 2 3. > > Best wishes > > Jeremy. > > >> >> Thanks, >> Mark >> >> On Tuesday, August 22, 2017 at 9:38:45 AM UTC-7, Jeremy Ruston wrote: >> Hi Mark >> >>> On 22 Aug 2017, at 17:12, 'Mark S.' via TiddlyWiki >>> <tiddl...@googlegroups.com <>> wrote: >>> >>> Then why doesn't this work? >> >> The problem here is that the [enlist[]] filter operator reads the list using >> $tw.utils.parseStringArray(), which throws away duplicate entries: >> >> https://github.com/Jermolene/TiddlyWiki5/blob/master/boot/boot.js#L270-L292 >> <https://github.com/Jermolene/TiddlyWiki5/blob/master/boot/boot.js#L270-L292> >> >> >> >> -- >> 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+...@ <>googlegroups.com <http://googlegroups.com/>. >> To post to this group, send email to tiddl...@ <>googlegroups.com >> <http://googlegroups.com/>. >> Visit this group at https://groups.google.com/group/tiddlywiki >> <https://groups.google.com/group/tiddlywiki>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/tiddlywiki/896268d7-afbb-4007-b572-a31c9a678eff%40googlegroups.com >> >> <https://groups.google.com/d/msgid/tiddlywiki/896268d7-afbb-4007-b572-a31c9a678eff%40googlegroups.com?utm_medium=email&utm_source=footer>. >> For more options, visit https://groups.google.com/d/optout >> <https://groups.google.com/d/optout>. > > > -- > 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 > <mailto:tiddlywiki+unsubscr...@googlegroups.com>. > To post to this group, send email to tiddlywiki@googlegroups.com > <mailto:tiddlywiki@googlegroups.com>. > Visit this group at https://groups.google.com/group/tiddlywiki > <https://groups.google.com/group/tiddlywiki>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/f078bfb8-f9dd-43f5-89e4-a1e819b5f3d9%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/f078bfb8-f9dd-43f5-89e4-a1e819b5f3d9%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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/91EED38D-A5AB-42EA-90C5-9D8F5B10E33A%40gmail.com. For more options, visit https://groups.google.com/d/optout.