Variable: -compare-fn

-compare-fn is a variable defined in dash.el.

Value

nil

Documentation

Tests for equality use this function, or equal if this is nil.

As a dynamic variable, this should be temporarily bound around the relevant operation, rather than permanently modified. For example:

  (let ((-compare-fn #'=))
    (-union '(1 2 3) '(2 3 4)))

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
;; TODO: Get rid of this dynamic variable, passing it as an argument
;; instead?
(defvar -compare-fn nil
  "Tests for equality use this function, or `equal' if this is nil.

As a dynamic variable, this should be temporarily bound around
the relevant operation, rather than permanently modified.  For
example:

  (let ((-compare-fn #\\='=))
    (-union \\='(1 2 3) \\='(2 3 4)))")