User Tools


Function CLRHASH

Syntax

  • clrhash hash-tablehash-table

Arguments and Values

Description

Removes all entries from hash-table, and then returns that empty hash table.

Examples

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

*TABLE*

*table*

#<HASH-TABLE EQL 0/120 32004073>

(dotimes (i 100) (setf (gethash i *table*) (format nil "~R" i)))

NIL

(hash-table-count *table*)

100

(gethash 57 *table*)

"fifty-seven", true

(clrhash *table*)

#<HASH-TABLE EQL 0/120 32004073>

(hash-table-count *table*)

0

(gethash 57 *table*)

NIL, false

Side Effects

The hash-table is modified.

Affected By

None.

Exceptional Situations

None.

See Also

None.

Notes

None.