Function: intersection

intersection is a for cl-intersection, defined in cl-seq.el.gz.

This function is obsolete since 27.1; use cl-intersection instead.

Signature

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

Documentation

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

Probably introduced at or before Emacs version 27.1.

Aliases

intersection (obsolete since 27.1)