Function: avy-multipop
avy-multipop is a macro defined in avy.el.
Signature
(avy-multipop LST N)
Documentation
Remove LST's first N elements and return them.
Source Code
;; Defined in ~/.emacs.d/elpa/avy-20241101.1357/avy.el
;;* Internals
;;** Tree
(defmacro avy-multipop (lst n)
"Remove LST's first N elements and return them."
`(if (<= (length ,lst) ,n)
(prog1 ,lst
(setq ,lst nil))
(prog1 ,lst
(setcdr
(nthcdr (1- ,n) (prog1 ,lst (setq ,lst (nthcdr ,n ,lst))))
nil))))