[plt-scheme] idiomatic way to get keys and values

From: Todd O'Bryan (toddobryan at gmail.com)
Date: Fri Jan 1 19:51:25 EST 2010

If I have a hash table h, I can get the keys and values

(let
  ([keys (hash-map h (lambda (k v) k))]
   [values (hash-map h (lambda (k v) v)])

but that seems kind of klunky. Is there a more idiomatic way that I'm
not thinking of?

Todd


Posted on the users mailing list.