seq-take-while

seq-take-while is a compiled Lisp function in `seq.el'.

(seq-take-while PRED SEQ)

Return a sequence of the successive elements for which (PRED element) is non-nil in SEQ.
The result is a sequence of the same type as SEQ.