Function: seq-take-while

seq-take-while is a byte-compiled function defined in transient.el.

Signature

(seq-take-while PRED SEQUENCE)

Documentation

Take the successive elements of SEQUENCE for which PRED returns non-nil.

PRED is a function of one argument. The function keeps collecting elements from SEQUENCE and adding them to the result until PRED returns nil for an element. Value is a sequence of the same type as SEQUENCE.

Other relevant functions are documented in the sequence group.

Shortdoc

;; sequence
(seq-take-while #'cl-evenp [2 4 9 6 5])
    => [2 4]

Implementations

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

Undocumented

Source Code

;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
;; Could not find source code, showing raw function object.
#[514 "\300\301\"\"\207"
      [seq-take seq--count-successive]
      7 "\n\n(fn PRED SEQUENCE)"]