User Tools


Function REMHASH

Syntax

  • remhash key hash-tablegeneralized-boolean

Arguments and Values

Description

Removes the entry for key in hash-table, if any. Returns true if there was such an entry, or false otherwise.

Examples

(defparameter *table* (make-hash-table))

*TABLE*

(setf (gethash 100 *table*) "C")

"C"

(gethash 100 *table*)

"C", true

(remhash 100 *table*)

true

(gethash 100 *table*)

NIL, false

(remhash 100 *table*)

false

Side Effects

The hash-table is modified.

Affected By

None.

Exceptional Situations

None.

See Also

None.

Notes

None.