User Tools

A PCRE internal error occured. This might be caused by a faulty plugin


This shows you the differences between two versions of the page.

Link to this comparison view

cl:functions:clrhash [2019/06/15 02:00]
cl:functions:clrhash [2020/07/02 17:00] (current)
Line 1: Line 1:
 +====== Function CLRHASH ======
 +  * **clrhash** //​hash-table//​ → //​hash-table//​
 +====Arguments and Values====
 +  * //​hash-table//​ - a //​[[CL:​Glossary:​hash table]]//.
 +Removes all entries from //​hash-table//,​ and then returns that empty //​[[CL:​Glossary:​hash table]]//.
 +([[CL:​Macros:​defparameter]] *table* ([[CL:​Functions:​make-hash-table]])) <​r>​*TABLE*</​r>​
 +*table* <​r>#<​HASH-TABLE [[CL:​Functions:​EQL]] 0/120 32004073>​ </r>
 +([[CL:​Macros:​dotimes]] (i 100) 
 +  ([[CL:​Macros:​setf]] ([[CL:​Functions:​gethash]] i *table*) ([[CL:​Functions:​format]] [[CL:​Constant Variables:​nil]] "​~R"​ i))) <​r>​[[CL:​Constant Variables:​nil|NIL]] </r>
 +([[CL:​Functions:​hash-table-count]] *table*) <​r>​100 </r>
 +([[CL:​Functions:​gethash]] 57 *table*) <​r>"​fifty-seven",​ //​[[CL:​Glossary:​true]]//</​r>​
 +(clrhash *table*) <​r>#<​HASH-TABLE [[CL:​Functions:​EQL]] 0/120 32004073>​ </r>
 +([[CL:​Functions:​hash-table-count]] *table*) <r>0 </r>
 +([[CL:​Functions:​gethash]] 57 *table*) <​r>​[[CL:​Constant Variables:​nil|NIL]],​ //​[[CL:​Glossary:​false]]//</​r>​
 +====Side Effects====
 +The //​hash-table//​ is modified.
 +====Affected By====
 +====Exceptional Situations====
 +====See Also====