Function: seq-drop-while
seq-drop-while is a byte-compiled function defined in seq.el.gz.
Signature
(seq-drop-while PRED SEQUENCE)
Documentation
Remove the successive elements of SEQUENCE for which PRED returns non-nil.
PRED is a function of one argument. The function keeps removing elements from SEQUENCE 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-drop-while #'numberp '(1 2 c d 5))
=> (c d 5)
Implementations
(seq-drop-while PRED (LIST list)) in `seq.el'.
Optimized implementation of `seq-drop-while' for lists.
(seq-drop-while PRED SEQUENCE) in `seq.el'.
Undocumented
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/seq.el.gz
(cl-defgeneric seq-drop-while (pred sequence)
"Remove the successive elements of SEQUENCE for which PRED returns non-nil.
PRED is a function of one argument. The function keeps removing
elements from SEQUENCE until PRED returns nil for an element.
Value is a sequence of the same type as SEQUENCE."
(seq-drop sequence (seq--count-successive pred sequence)))