chickadee » srfi-69 » hash-table-update!/default

hash-table-update!/default HASH-TABLE KEY UPDATE-FUNCTION DEFAULT-VALUEprocedure

Sets or replaces the VALUE for KEY in the HASH-TABLE.

The UPDATE-FUNCTION takes the existing VALUE for KEY and returns the new VALUE.

The DEFAULT-VALUE is used when the entry for KEY is missing.

Returns the new VALUE.