I'm processing rows from a dictionary tiddler into raw html table rows, and each tiddler row needs to be split into individual elements. There may be duplicate elements in a single row. An enlist analogue that preserves duplicates would be ideal for the task.
Regards, David On Wed., 24 Apr. 2019, 6:49 am TonyM, <anthony.mus...@gmail.com> wrote: > David, > > Until this is resolved with the new maths operators you may b able to find > an alternate way to achieve what you want, in your example you are setting > HasDuplicates > with a string of titles. > > Perhaps explain not so much how you are doing this but what and why you > are doing this? > > There should be a code work around. > > Regards > Tony > > > On Tuesday, April 23, 2019 at 9:32:28 PM UTC+10, David Nebauer wrote: >> >> This tiddlyscript: >> >> <$set name="HasDuplicates" value="one two two three [[twenty one]] >> [[twenty one]] [[forty six]]"> >> >> <$list filter="[split:list<HasDuplicates>]"> >> >> </$list> >> >> xXx >> >> <$list filter="[enlist<HasDuplicates>]"> >> >> </$list> >> >> </$set> >> >> results in: >> >> >> one <http://localhost:10744/#one> >> two <http://localhost:10744/#two> >> three <http://localhost:10744/#three> >> twenty one <http://localhost:10744/#twenty%20one> >> forty six <http://localhost:10744/#forty%20six> >> >> >> xXx >> >> one <http://localhost:10744/#one> >> two <http://localhost:10744/#two> >> three <http://localhost:10744/#three> >> twenty one <http://localhost:10744/#twenty%20one> >> forty six <http://localhost:10744/#forty%20six> >> >> There are duplicate items in the list, and in this example *split:list* >> removes them just as *enlist* does. It is my understanding that >> tobibeer's split filter is not supposed to remove duplicates unless the >> 'unique' suffix is used. Does anyone know if there any way to use >> tobibeer's split filter to obtain a list that keeps duplicate items? (Or >> any other method?) >> >> TW5/nodejs 5.1.19 >> tobibeers/split plugin 0.8.0 >> >> Note: I am aware that TW 5.1.20 will have a split operator that retains >> duplicates, but I'm hoping for a solution in days rather than [*insert >> TW 5.1.20 release schedule here*]. >> >> Regards, >> David >> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "TiddlyWiki" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/tiddlywiki/o7cwG5kYl4E/unsubscribe. > To unsubscribe from this group and all its topics, 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/2fa8b904-a989-4820-be4e-8fcb058163cf%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/2fa8b904-a989-4820-be4e-8fcb058163cf%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit 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/CAFWVPz9j36zN_9x6yeE2JGav%2BVPVN16NBHmujHAZaj92pKvjGg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.