This is probably a silly question however, is there a simple way of doing antijoins of collections in Groovy?
I know there are [equivilent ways of doing unions and intersections].
My thought on how to do this is:
List a,b;
union(a,b) - intersection(a,b)
However, I’m not sure if there is a difference operator for collections in groovy.
It turns out that can you can do a subtraction operation on 2 lists, and receive a list back of the disjoint collection. Just use the subtraction operator between two lists.