Function: parseedn-print-hash-or-alist

parseedn-print-hash-or-alist is a byte-compiled function defined in parseedn.el.

Signature

(parseedn-print-hash-or-alist MAP &optional KS)

Documentation

Insert hash table MAP or elisp alist as an EDN map into the current buffer.

Selects KS from MAP if specified, otherwise all keys will be selected.

Source Code

;; Defined in ~/.emacs.d/elpa/parseedn-20231203.1909/parseedn.el
(defun parseedn-print-hash-or-alist (map &optional ks)
  "Insert hash table MAP or elisp alist as an EDN map into the current buffer.
Selects KS from MAP if specified, otherwise all keys will be selected."
  (when-let ((keys (or ks (map-keys map))))
    (parseedn-print (car keys))
    (insert " ")
    (parseedn-print (map-elt map (car keys)))
    (let ((next (cdr keys)))
      (when (not (seq-empty-p next))
        (insert ", ")
        (parseedn-print-hash-or-alist map next)))))