# setIntersect() Function & Examples

Use the setIntersect() set function in Calcul.io. Review its syntax, edit working examples, understand the result, and explore related math functions.

## setIntersect

#### setIntersect(set1, set2)

Try it yourself:

```calculio
setIntersect([1, 2, 3, 4], [3, 4, 5, 6])
setIntersect([[1, 2], [3, 4]], [[3, 4], [5, 6]])
```

---

## 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](https://calcul.io/function/setDifference/index.md) for values excluded from one side, and [setUnion](https://calcul.io/function/setUnion/index.md) for all distinct members.

## Caveats

Inputs should represent sets; duplicates do not add membership. Normalize with [setDistinct](https://calcul.io/function/setDistinct/index.md) and use [setIsSubset](https://calcul.io/function/setIsSubset/index.md) when the question is complete containment rather than the common result.

[All functions](https://calcul.io/functions/index.md)
