[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hash-table-update!

This page is part of the web mail archives of SRFI 69 from before July 7th, 2015. The new archives for SRFI 69 contain all messages, not just those from before July 7th, 2015.



Hi!

Several Scheme implementations provide an "update" function, i.e.

(hash-table-update! TABLE KEY PROC [DEFAULT])

which looks up the entry and (if found) calls PROC and replaces
the entry with the result. This might be more efficient than

(hash-table-set! TABLE KEY (PROC (hash-table-ref TABLE KEY)))


cheers,
felix