Function: eca-chat--rotate-after

eca-chat--rotate-after is a natively compiled function defined in eca-chat.el.

Signature

(eca-chat--rotate-after ITEMS POS)

Documentation

Return ITEMS rotated to start right after position POS.

The element at POS is moved to the end so it is visited last. When POS is nil, return ITEMS unchanged.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--rotate-after (items pos)
  "Return ITEMS rotated to start right after position POS.
The element at POS is moved to the end so it is visited last.
When POS is nil, return ITEMS unchanged."
  (if pos
      (append (nthcdr (1+ pos) items)
              (cl-subseq items 0 (1+ pos)))
    items))