[gambit-list] Questions about tables.
Bradley Lucier
lucier at math.purdue.edu
Mon Feb 18 20:24:39 EST 2008
Marc:
I have some questions about tables.
1. Can there be a function like
(table-update! table key (lambda (#!optional (value default-value))
<whatever>))
instead of using
(table-set! table key ((lambda (value) <whatever>) (table-ref table
key default-value)))
It would seem to avoid one table lookup for the key.
2. I presume that the table can get messed up if the keys are
mutable and you change the key (like a string) after it has been used
to index the table. Or is it possible to tell the table to copy any
keys that are not in the table as they are entered into the table?
Brad
More information about the Gambit-list
mailing list