Function: ht<-plist
ht<-plist is a byte-compiled function defined in ht.el.
Signature
(ht<-plist PLIST &optional TEST)
Documentation
Create a hash table with initial values according to PLIST.
TEST indicates the function used to compare the hash
keys. Default is equal. It can be eq, eql, equal or a
user-supplied test created via define-hash-table-test.
Aliases
Source Code
;; Defined in ~/.emacs.d/elpa/ht-20230703.558/ht.el
(defun ht<-plist (plist &optional test)
"Create a hash table with initial values according to PLIST.
TEST indicates the function used to compare the hash
keys. Default is `equal'. It can be `eq', `eql', `equal' or a
user-supplied test created via `define-hash-table-test'."
(declare (side-effect-free t))
(let ((h (ht-create test)))
(dolist (pair (nreverse (-partition 2 plist)) h)
(let ((key (car pair))
(value (cadr pair)))
(ht-set! h key value)))))