User Tools


Differences

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

Link to this comparison view

cl:functions:hash-table-p [2017/04/28 10:10] (current)
Line 1: Line 1:
 +====== Function HASH-TABLE-P ======
 +
 +====Syntax====
 +  * **hash-table-p** //object// → //​generalized-boolean//​
 +
 +====Arguments and Values====
 +  * //object// - an //​[[CL:​Glossary:​object]]//​.
 +  * //​generalized-boolean//​ - a //​[[CL:​Glossary:​generalized boolean]]//​.
 +
 +====Description====
 +Returns //​[[CL:​Glossary:​true]]//​ if //object// is of //​[[CL:​Glossary:​type]]//​ **[[CL:​Types:​hash-table]]**;​ otherwise, returns //​[[CL:​Glossary:​false]]//​.
 +
 +====Examples====
 +<​blockquote>​
 +([[CL:​Macros:​defparameter]] *table* ([[CL:​Functions:​make-hash-table]])) <​r>​*TABLE*</​r>​
 +*table* <​r>#<​HASH-TABLE [[CL:​Functions:​EQL]] 0/120 32511220></​r>​
 +(hash-table-p *table*) <​r>//​[[CL:​Glossary:​true]]//</​r>​
 +(hash-table-p 37) <​r>//​[[CL:​Glossary:​false]]//</​r>​
 +(hash-table-p '((a . 1) (b . 2))) <​r>//​[[CL:​Glossary:​false]]//</​r>​
 +</​blockquote>​
 +
 +====Side Effects====
 +None.
 +
 +====Affected By====
 +None.
 +
 +====Exceptional Situations====
 +None.
 +
 +====See Also====
 +None.
 +
 +====Notes====
 +<​blockquote>​
 +(hash-table-p //object//) ≡ ([[CL:​Functions:​typep]] //object// '​[[CL:​Types:​hash-table]])
 +</​blockquote>​
 +