[CM] iterating over a hash table

David Rush kumoyuki at gmail.com
Wed Dec 16 12:14:33 PST 2009


2009/12/16 Bill Schottstaedt <bil at ccrma.stanford.edu>:
>> In the s-7 documentation, it says that a hash-table is a vector of
>> alists and can be iterated over by vector-ref.
>
> oops -- thanks for pointing this out.  Now I can't decide whether to
> re-enable vector-ref of a hash-table or provide hash-table-for-each --
> any strong opinions?

hash-table-for-each  would be the Schemely way. Overlading vector-ref
would be the CL way. You takes your pick, you get yer choice...

david rush
-- 
who prefers *Scheme*



More information about the Cmdist mailing list