Function: -orfn
-orfn is a byte-compiled function defined in dash.el.
Signature
(-orfn &rest PREDS)
Documentation
Return a predicate that returns the first non-nil result of PREDS.
The returned predicate takes a variable number of arguments, passes them to each predicate in PREDS in turn until one of them returns non-nil, and returns that non-nil result without calling the remaining PREDS. If all PREDS return nil, or if no PREDS are given, the returned predicate returns nil.
Source Code
;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -orfn (&rest preds)
"Return a predicate that returns the first non-nil result of PREDS.
The returned predicate takes a variable number of arguments,
passes them to each predicate in PREDS in turn until one of them
returns non-nil, and returns that non-nil result without calling
the remaining PREDS. If all PREDS return nil, or if no PREDS are
given, the returned predicate returns nil.
See also: `-andfn' and `-not'."
(declare (pure t) (side-effect-free error-free))
;; Open-code for speed.
(cond ((cdr preds) (lambda (&rest args) (--some (apply it args) preds)))
(preds (car preds))
(#'ignore)))