Function: nrepl--alist-to-plist
nrepl--alist-to-plist is a byte-compiled function defined in
nrepl-dict.el.
Signature
(nrepl--alist-to-plist MAYBE-ALIST)
Documentation
Transform MAYBE-ALIST into a plist if it is an alist.
Compatibility function for functions that used to accepts nrepl request options as alists. A warning will be printed if alist is received.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/nrepl-dict.el
(defun nrepl--alist-to-plist (maybe-alist)
"Transform MAYBE-ALIST into a plist if it is an alist.
Compatibility function for functions that used to accepts nrepl request
options as alists. A warning will be printed if alist is received."
(let ((first-arg (car-safe maybe-alist)))
(if (or (null first-arg) (not (listp first-arg)))
maybe-alist ;; It is a plist - don't have to convert
(warn "Received alist where it should have been plist: %s" maybe-alist)
(seq-mapcat #'identity maybe-alist))))