Function: -some

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

Signature

(-some PRED LIST)

Documentation

Return (PRED x) for the first LIST item where (PRED x) is non-nil, else nil.

Alias: -any.

This function's anaphoric counterpart is --some.

View in manual

Aliases

-any

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -some (pred list)
  "Return (PRED x) for the first LIST item where (PRED x) is non-nil, else nil.

Alias: `-any'.

This function's anaphoric counterpart is `--some'."
  (declare (important-return-value t))
  (--some (funcall pred it) list))