Function: ht
ht is a macro defined in ht.el.
Signature
(ht (KEY-1 VALUE-1) (KEY-2 VALUE-2) ...)
Documentation
Create a hash table with the key-value pairs given.
Keys are compared with equal.
Source Code
;; Defined in ~/.emacs.d/elpa/ht-20230703.558/ht.el
(defmacro ht (&rest pairs)
"Create a hash table with the key-value pairs given.
Keys are compared with `equal'.
\(fn (KEY-1 VALUE-1) (KEY-2 VALUE-2) ...)"
(let* ((table-symbol (make-symbol "ht-temp"))
(assignments
(mapcar
(lambda (pair) `(ht-set! ,table-symbol ,@pair))
pairs)))
`(let ((,table-symbol (ht-create)))
,@assignments
,table-symbol)))