Function: seq-every-p

seq-every-p is an autoloaded and byte-compiled function defined in seq-25.el.

Signature

(seq-every-p PRED SEQUENCE)

Documentation

Return non-nil if PRED returns non-nil for all the elements of SEQUENCE.

Other relevant functions are documented in the sequence group.

Shortdoc

;; sequence
(seq-every-p #'numberp '(1 2 3))
    => t

Aliases

ebrowse-every (obsolete since 28.1) refer-every (obsolete since 28.1)

Implementations

(pred sequence) in `seq-25.el'.

Undocumented

Source Code

;; Defined in ~/.emacs.d/elpa/seq-2.24/seq-25.el
;;;###autoload
(cl-defgeneric seq-every-p (pred sequence)
  "Return non-nil if PRED returns non-nil for all the elements of SEQUENCE."
  (catch 'seq--break
    (seq-doseq (elt sequence)
      (or (funcall pred elt)
          (throw 'seq--break nil)))
    t))