We want to compare sets (or keys of a map) with a collection in the predicate and return true/false based on the type of overlap. 1. Seen In/Has Intersection? Data | Search | Result -- | -- | -- X,Y,Z | X,Y | True X,Y,Z | X,B | True X,Y,Z | B,C | False 2. Seen Outside/Has Difference? Data | Search | Result -- | -- | -- X,Y,Z | X,Y | True X,Y,Z | X,Y,Z | False X,Y,Z | B,C | True 3. Always seen outside, Has No Intersection? This is just the NOT of has intersection I think. Data | Search | Result -- | -- | -- X,Y,Z | X,Y | False X,Y,Z | X,B | False X,Y,Z | B,C | True
We want to compare sets (or keys of a map) with a collection in the predicate and return true/false based on the type of overlap.
Seen In/Has Intersection?
Data | Search | Result
-- | -- | --
X,Y,Z | X,Y | True
X,Y,Z | X,B | True
X,Y,Z | B,C | False
Seen Outside/Has Difference?
Data | Search | Result
-- | -- | --
X,Y,Z | X,Y | True
X,Y,Z | X,Y,Z | False
X,Y,Z | B,C | True
Always seen outside, Has No Intersection?
This is just the NOT of has intersection I think.