setIntersect

setIntersect(set1, set2)

Try it yourself:


Find shared members with setIntersect

setIntersect(A, B) returns members occurring in both sets. It helps identify common tags, allowed options, or overlapping results.

Example

The intersection of {1,2,3} and {2,3,4} is {2,3}. Use setDifference for values excluded from one side, and setUnion for all distinct members.

Caveats

Inputs should represent sets; duplicates do not add membership. Normalize with setDistinct and use setIsSubset when the question is complete containment rather than the common result.

All functions