You'll hate this idea, but you could put a uniqueness enforcer in front of each row item (e.g. A_MyTiddler B_MyTiddler) then, after whatever processing you do, split off the uniqueness bit using the splitbefore and removeprefix operators.
What's really needed is a uniquess filter, like "pragma[keep-dupes]" that would tell all downstream operators to preserve arrays, until flagged the other way "pragma[no-dupes]". But of course every single filter operator that uses dupes would have to be re-written to handle this, which wouldn't be easy because (I suspect) that the duplicate behavior is based on object property behaviour in javascript. -- Mark On Wednesday, April 24, 2019 at 5:09:20 AM UTC-7, David Nebauer wrote: > > I'm processing dictionary tiddler rows that each contain a sequence of > values I need to handle individually. I'd love to use *enlist* in a > filter to break apart each row for consumption by a <$list>. The problem > with that approach is the rows may contain duplicate values that need to be > preserved, and core filters/operators currently remove duplicates. > > In looking for a solution I explored both the *split:list* filter from > tobibeer and the *split* operator being introduced in TW v5.1.20, but > neither is entirely suitable as a straight drop-in replacement for > *enlist*. In short, *split:list* does not preserve duplicates despite its > documentation appearing to say it should, and v5.1.20 *split* does not > respect the double square bracket convention -- for values which include > spaces -- as *enlist* does. (See this topic > <https://groups.google.com/forum/#!searchin/tiddlywiki/nebauer%7Csort:date/tiddlywiki/o7cwG5kYl4E/RGWe0QJIAgAJ> > for > more details, including test scripts and example output.) > > There is a github issue (#3757 > <https://github.com/Jermolene/TiddlyWiki5/issues/3757>) from early > February which discussed the issue of v5.1.20 *math* operators not > accepting duplicates, but it did not reach any resolution (at least, not > yet). > > Has anyone else grappled with this problem and found a solution or > workaround? Preferably one that does not involve hacking on core > tiddlers... :-) > > Regards, > David. > > P.S. I'm using TW 5.1.19/nodejs. > -- 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 post to this group, send email to [email protected]. 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/cd5d4072-377a-4953-91bd-c01456daf9aa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

