Intersection

is a dyadic set function which computes the set intersection of the two vector arguments.

Examples
Both arguments of Intersection is usually restricted to vectors. Unlike sets in the mathematical sense, duplicate elements are allowed in both sides, and Intersection is usually implemented as "left argument filtered by its existence in the right argument", which preserves the order and multiplicity in the left argument. Both arguments can be nested arrays.

Extension
Some dialects allow Intersection to work on major cells: Try it online! Others can easily define such a function: Try it online!

Documentation

 * Dyalog
 * APLX