Function: corfu--move-to-front

corfu--move-to-front is a byte-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 ~/.emacs.d/elpa/corfu-20260813.950/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))