cl-intersection

cl-intersection is an autoloaded compiled Lisp function in `cl-seq.el'.

(cl-intersection LIST1 LIST2 [KEYWORD VALUE]...)

Combine LIST1 and LIST2 using a set-intersection operation.
The resulting list contains all items that appear in both LIST1 and LIST2.
This is a non-destructive function; it makes a copy of the data if necessary
to avoid corrupting the original LIST1 and LIST2.

Keywords supported: :test :test-not :key