Oddbean new post about | logout
 Is there truly no generalized way to iterate over an #emacslisp hash-table than maphash? What if I don't want to iterate over all the elments? What if I want to drive the iteration myself? 
 @6adcf666 You probably have to get all the keys first:

(defun hash-table-keys (hash-table)
  (let ((keys ()))
    (maphash (lambda (k v) (push k keys)) hash-table)
    keys))


and then run your own iteration. You are right, hash tables are not a first class citizen in Elisp, unfortunately.