Function: cider-join-into-alist

cider-join-into-alist is a byte-compiled function defined in cider-util.el.

Signature

(cider-join-into-alist CANDIDATES &optional SEPARATOR)

Documentation

Make an alist from CANDIDATES.

The keys are the elements joined with SEPARATOR and values are the original elements. Useful for completing-read when candidates are complex objects.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-util.el
;;; Strings

(defun cider-join-into-alist (candidates &optional separator)
  "Make an alist from CANDIDATES.
The keys are the elements joined with SEPARATOR and values are the original
elements.  Useful for `completing-read' when candidates are complex
objects."
  (mapcar (lambda (el)
            (if (listp el)
                (cons (string-join el (or separator ":")) el)
              (cons el el)))
          candidates))