User Tools


Differences

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

Link to this comparison view

cl:functions:keywordp [2019/06/15 02:00]
cl:functions:keywordp [2019/09/16 13:00] (current)
Line 1: Line 1:
 +====== Function KEYWORDP ======
 +
 +====Syntax====
 +  * **keywordp** //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 a //​[[CL:​Glossary:​keyword]]//;​ otherwise, returns //​[[CL:​Glossary:​false]]//​.
 +
 +====Examples====
 +<​blockquote> ​
 +(keywordp '​elephant) <​r>//​[[CL:​Glossary:​false]]//​ </r>
 +(keywordp 12) <​r>//​[[CL:​Glossary:​false]]//​ </r>
 +(keywordp :|12|) <​r>//​[[CL:​Glossary:​true]]//​ </r>
 +(keywordp :test) <​r>//​[[CL:​Glossary:​true]]//​ </r>
 +(keywordp ':​test) <​r>//​[[CL:​Glossary:​true]]//​ </r>
 +(keywordp nil) <​r>//​[[CL:​Glossary:​false]]//​ </r>
 +(keywordp :nil) <​r>//​[[CL:​Glossary:​true]]//​ </r>
 +(keywordp '​(:​test)) <​r>//​[[CL:​Glossary:​false]]//​ </r>
 +(keywordp "​hello"​) <​r>//​[[CL:​Glossary:​false]]//​ </r>
 +(keywordp ":​hello"​) <​r>//​[[CL:​Glossary:​false]]//​ </r>
 +(keywordp '&​optional) <​r>//​[[CL:​Glossary:​false]]//​ </r>
 +</​blockquote>​
 +
 +====Side Effects====
 +None.
 +
 +====Affected By====
 +None.
 +
 +====Exceptional Situations====
 +None.
 +
 +====See Also====
 +  * **[[CL:​Functions:​constantp|Function CONSTANTP]]**
 +  * **[[CL:​Types:​keyword|Type KEYWORD]]**
 +  * **[[CL:​Functions:​symbolp|Function SYMBOLP]]**
 +  * **[[CL:​Functions:​symbol-package|Function SYMBOL-PACKAGE]]**
 +
 +====Notes====
 +None.
 +