This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.

⚠️ We've moved!

Hi there!

To reduce project dependency on 3rd party paid services the StackStorm TSC has decided to move the Q/A from this forum to Github Discussions. This will make user experience better integrated with the native Github flow, as well as the questions closer to the community where they can provide answers.

Use 🔗 Github Discussions to ask your questions.

How to exclude list from list

Hi

How can we exclude/substract a list from another list with mistral (yaql) and orquestra?

L1=[ 'a', 'b', 'c' ]
L2= [ 'a' ]

I want
L3= L1-L2= [ 'b', 'c' ]

I tried with set but st2 Can not evaluate YAQL expression:

res: <% list(set(L1) - set(L2)) %>

Stackstormly

Follow the YAQL documentation which has this functionality covered https://yaql.readthedocs.io/en/latest/standard_library.html#working-with-collections