Function: hierarchy--set-equal

hierarchy--set-equal is a byte-compiled function defined in hierarchy.el.gz.

Signature

(hierarchy--set-equal LIST1 LIST2 &rest CL-KEYS)

Documentation

Return non-nil if LIST1 and LIST2 have same elements.

I.e., if every element of LIST1 also appears in LIST2 and if every element of LIST2 also appears in LIST1.

CL-KEYS are key-value pairs just like in cl-subsetp. Supported keys are :key and :test.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/hierarchy.el.gz
(defun hierarchy--set-equal (list1 list2 &rest cl-keys)
  "Return non-nil if LIST1 and LIST2 have same elements.

I.e., if every element of LIST1 also appears in LIST2 and if
every element of LIST2 also appears in LIST1.

CL-KEYS are key-value pairs just like in `cl-subsetp'.  Supported
keys are :key and :test."
  (and (apply 'cl-subsetp list1 list2 cl-keys)
       (apply 'cl-subsetp list2 list1 cl-keys)))