Function: vertico--move-to-front
vertico--move-to-front is a natively compiled function defined in
vertico.el.
Signature
(vertico--move-to-front ELEM LIST)
Documentation
Move all ELEM (also duplicates) to front of LIST.
Source Code
;; Defined in /nix/store/h1nc2k1rxmi6k9cfflcd37cf4zfhp2v5-emacs-packages-deps/share/emacs/site-lisp/elpa/vertico-20260913.1525/vertico.el
(defun vertico--move-to-front (elem list)
"Move all ELEM (also duplicates) to front of LIST."
(if (member elem list)
(nconc (cl-loop for x in list if (equal x elem) collect x)
(delete elem list))
list))