Function: hash-copy
hash-copy is a byte-compiled function defined in hasht.el.
Signature
(hash-copy HASH-TABLE)
Documentation
Return a copy of HASH-TABLE.
List and vector elements are shared across both tables.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hasht.el
(defun hash-copy (hash-table)
"Return a copy of HASH-TABLE.
List and vector elements are shared across both tables."
(unless (hash-table-p hash-table)
(error "(hash-copy): Invalid hash-table: `%s'" hash-table))
(let ((htable-copy (make-hash-table :size (length hash-table))))
(hash-map
(lambda (val-key-cons) (hash-add (car val-key-cons) (cdr val-key-cons)
htable-copy))
hash-table)
htable-copy))