Function: cl-nset-difference
cl-nset-difference is an autoloaded and byte-compiled function defined
in cl-seq.el.gz.
Signature
(cl-nset-difference LIST1 LIST2 [KEYWORD VALUE]...)
Documentation
Combine LIST1 and LIST2 using a set-difference operation.
The resulting list contains all items that appear in LIST1 but not LIST2. This is a destructive function; it reuses the storage of LIST1 (but not LIST2) whenever possible.
Keywords supported: :test :test-not :key
Aliases
nset-difference (obsolete since 27.1)
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-seq.el.gz
;;;###autoload
(defun cl-nset-difference (list1 list2 &rest cl-keys)
"Combine LIST1 and LIST2 using a set-difference operation.
The resulting list contains all items that appear in LIST1 but not LIST2.
This is a destructive function; it reuses the storage of LIST1 (but not
LIST2) whenever possible.
\nKeywords supported: :test :test-not :key
\n(fn LIST1 LIST2 [KEYWORD VALUE]...)"
(declare (important-return-value t))
(if (or (null list1) (null list2)) list1
(apply #'cl-set-difference list1 list2 cl-keys)))