Inside tiddlywiki - the undocumented features ! On Thursday, 24 December 2020 at 03:33:09 UTC+11 [email protected] wrote:
> Has to be an oversight when it was added. It is a relatively straight > forward but useful listops operator. > > On Wednesday, December 23, 2020 at 4:07:55 PM UTC+1 Mark S. wrote: > >> I worry a bit about the *unique* operator -- why isn't it documented? >> >> On Wednesday, December 23, 2020 at 6:08:27 AM UTC-8 [email protected] >> wrote: >> >>> @Erwan just for reference, you could also do: >>> >>> [tag[question]get[answer]unique[]] >>> >>> On Wednesday, December 23, 2020 at 2:08:18 PM UTC+1 Erwan wrote: >>> >>>> Perfect! >>>> Thank you Eric :) >>>> >>>> >>>> On Wednesday, December 23, 2020 at 12:36:01 PM UTC Eric Shulman wrote: >>>> >>>>> On Wednesday, December 23, 2020 at 4:16:11 AM UTC-8 Erwan wrote: >>>>> >>>>>> I'm trying to obtain a list of unique "answers" from a list of >>>>>> questions like this: >>>>>> <$list filter="[tag[question]get[answer]]"> >>>>>> >>>>>> </$list> >>>>>> >>>>> ...there can be several "question" tiddlers with the same answer... >>>>>> >>>>> I would like to obtain this list but without duplicates. >>>>>> >>>>> >>>>> Use the "each:value[]" filter, like this: >>>>> <$list filter="[tag[question]get[answer]each:value[]]"> >>>>> >>>>> </$list> >>>>> >>>>> see https://tiddlywiki.com/#each%20Operator for more info. >>>>> >>>>> enjoy, >>>>> -e >>>>> >>>> -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/d0b17a22-c0ca-42bc-a593-dbbc198277fen%40googlegroups.com.

