# Intersection of two sets or of two lists: intersect

### 5.41.4 Intersection of two sets or of two lists: intersect

The intersect operator is an infixed operator that can find the intersection of the elements of two sets or lists; the result will always be a set.

#### Examples.

- Input:
  set[1,2,3,4] intersect set[5,6,3,4]
  or:
  %{1,2,3,4%} intersect %{5,6,3,4%}
  Output:

  ⟦ 3,4 ⟧

- Input:
  [1,2,3,4] intersect [5,6,3,4]
  Output:

  ⟦ 3,4 ⟧