Function: eca-chat--context-bar-indices-by-tokens

eca-chat--context-bar-indices-by-tokens is a natively compiled function defined in eca-chat.el.

Signature

(eca-chat--context-bar-indices-by-tokens TOKENS)

Documentation

Return indices into TOKENS ordered by descending value.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--context-bar-indices-by-tokens (tokens)
  "Return indices into TOKENS ordered by descending value."
  (mapcar #'car
          (sort (cl-loop for v in tokens for i from 0 collect (cons i v))
                (lambda (a b) (> (cdr a) (cdr b))))))