News for hackers. Stuff that matters.
Re:Essential Elisp libraries by lispm on Friday April 26, 2013 @10:40AM (#5613156)
(make-hash-table) is too difficult?
Re:Essential Elisp libraries by jfb on Friday April 26, 2013 @10:44AM (#5613177)
Enumerate the keys, please. Oh, no primitives? Well, you can just use maphash. But wait: maphash doesn't return values. So you need your k/v function to modify some state somewhere.

WAT

Fuck it, I'll just use an alist.

Re:Essential Elisp libraries by lispm on Friday April 26, 2013 @01:05PM (#5614003)
Enumerating keys makes (MAKE-HASH-TABLE) hard to use? What?

If you want to enumerate keys, write a function. In Common Lisp I write:

    (defun hash-table-keys (ht)
      (loop for k being each hash-key of ht collect k))
Done. That's Lisp. Need a function? Write it.
Re:Essential Elisp libraries by jfb on Friday April 26, 2013 @01:16PM (#5614085)
Cool, thanks. The problem here is in the elisp manual, then.