This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Hash table keys?


On Sun, Mar 28, 1999 at 02:16:21PM -0800, it occurred to Greg Badros to write:
> How do I get at a list of the keys in a guile hash table?  Is there a
> standard supported proc (e.g., hash-table->alist would be nice)?

(define (hash-table->alist h)
  (apply append (vector->list h)))

HTH.


Lauri Alanko
la@iki.fi