Function: -not

-not is a byte-compiled function defined in dash.el.

Signature

(-not PRED)

Documentation

Return a predicate that negates the result of PRED.

The returned predicate passes its arguments to PRED. If PRED returns nil, the result is non-nil; otherwise the result is nil.

See also: -andfn and -orfn.

View in manual

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -not (pred)
  "Return a predicate that negates the result of PRED.
The returned predicate passes its arguments to PRED.  If PRED
returns nil, the result is non-nil; otherwise the result is nil.

See also: `-andfn' and `-orfn'."
  (declare (pure t) (side-effect-free error-free))
  (lambda (&rest args) (not (apply pred args))))