Function: -drop-while

-drop-while is a byte-compiled function defined in dash.el.

Signature

(-drop-while PRED LIST)

Documentation

Drop successive items from LIST for which PRED returns non-nil.

PRED is a function of one argument. Return the tail (not a copy) of LIST starting from its first element for which PRED returns nil.

This function's anaphoric counterpart is --drop-while.

For another variant, see also -take-while.

View in manual

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -drop-while (pred list)
  "Drop successive items from LIST for which PRED returns non-nil.
PRED is a function of one argument.  Return the tail (not a copy)
of LIST starting from its first element for which PRED returns
nil.

This function's anaphoric counterpart is `--drop-while'.

For another variant, see also `-take-while'."
  (declare (important-return-value t))
  (--drop-while (funcall pred it) list))