Function: -only-some?

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

Signature

(-only-some? PRED LIST)

Documentation

Return t if different LIST items both satisfy and do not satisfy PRED.

That is, if PRED returns both nil for at least one item, and non-nil for at least one other item in LIST. Return nil if all items satisfy the predicate or none of them do.

Alias: -only-some-p

View in manual

Aliases

-only-some-p

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -only-some? (pred list)
  "Return t if different LIST items both satisfy and do not satisfy PRED.
That is, if PRED returns both nil for at least one item, and
non-nil for at least one other item in LIST.  Return nil if all
items satisfy the predicate or none of them do.

Alias: `-only-some-p'"
  (declare (important-return-value t))
  (--only-some? (funcall pred it) list))