[gambit-list] table-update! primitive
Dimitris Vyzovitis
vyzo at hackzen.org
Sat Oct 26 05:45:36 EDT 2019
Marc,
Can we add a table-update! primitive?
Updates are currently slow because they need two lookups in the hash table,
one to find the current value (if any) and one to set it.
The canonical signature is (table-update! table key update default), where
update is applied to the current value, using default if the value is unset.
-- vyzo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20191026/147aea30/attachment.htm>
More information about the Gambit-list
mailing list