ToC | DocOverview | CGDoc | RelNotes | Index | PermutedIndex
| Allegro CL

| ANSI Common Lisp 18 Hash Tables 18.2 Dictionary of Hash Tables
18.2.13 clrhash | Function
  Syntax: clrhash hash-table hash-table Arguments and Values: hash-table - a hash table. Description: Removes all entries from hash-table, and then returns that empty hash table. Examples:
       (setq table (make-hash-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. Allegro CL Implementation Details: None.

© Franz Inc. All Rights Reserved - File last updated 2022-07-25