The loop macro supports iteration over the keys, the values, or the keys and values of a hash table. The following examples show possibilities, but the full loop syntax allows more combinations and variants.
Over keys and values
(let ((ht (make-hash-table)))
(setf (gethash 'a ht) 1
(g...