Coniders this code:
[enlist:raw[a b a c d a b x]] [[c]]
c will be de-duplicated and the result will be a b a d a b x c
.
If I want to keep both c I have to prepend the second filter run with =
as in
[enlist:raw[a b a c d a b x]] =[[c]]
Now we can also observe that
[enlist:raw[a b a c d a b x]] [[a]]`
gives us b a c d a b x a
and not b c d b x a
as we could have expected. Is that a bug or just something that needs to be well documented?
We have the same things happening with the toggle
filter op:
[enlist:raw[a b a c d a b x]] +[toggle[a]]
produces b a c d a b x]
and not b c d b x]
and here the official doc is nowhere near telling us this way of working. But its true that my example is not the use case intended at the creation of the “toggle” filter op.