Function: corfu--move-to-front
corfu--move-to-front is a natively compiled function defined in
corfu.el.
Signature
(corfu--move-to-front ELEM LIST)
Documentation
Move all ELEM (also duplicates) to front of LIST.
Source Code
;; Defined in /nix/store/za087xxa0z5mirfbbagrp0qfaqnfn5wb-emacs-packages-deps/share/emacs/site-lisp/elpa/corfu-20260913.1527/corfu.el
(defun corfu--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))