How about an \in / element-of operator? E.g. to iterate over elements in a list stored as a comma-separated string attribute:
Element \in eval(S.split(","))
The right hand-side is a scalar value of type collection / array, e.g. returned by an eval expression. This is NOT the way to handle multi-valued EMF references, which are "enumerated" by EMF-IncQuery automatically.
Now we can also use constant literal lists here, and even have the engine handle them more concisely and efficiently:
How about an \in / element-of operator? E.g. to iterate over elements in a list stored as a comma-separated string attribute:
Element \in eval(S.split(","))
The right hand-side is a scalar value of type collection / array, e.g. returned by an eval expression. This is NOT the way to handle multi-valued EMF references, which are "enumerated" by EMF-IncQuery automatically.
Now we can also use constant literal lists here, and even have the engine handle them more concisely and efficiently:
This would have equivalent meaning to:
Or perhaps even closer to this: