User Tools


Differences

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

Link to this comparison view

cl:functions:integerp [2019/11/11 05:00]
cl:functions:integerp [2019/11/19 04:00] (current)
Line 1: Line 1:
 +====== Function INTEGERP ======
 +
 +====Syntax====
 +  * **integerp** //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:​integer]]**;​ otherwise, returns //​[[CL:​Glossary:​false]]//​.
 +
 +====Examples==== ​
 +<​blockquote> ​
 +(integerp 1) <​r>//​[[CL:​Glossary:​true]]//​ </r>
 +(integerp ([[CL:​Functions:​expt]] 2 130)) <​r>//​[[CL:​Glossary:​true]]//​ </r>
 +(integerp 6/5) <​r>//​[[CL:​Glossary:​false]]//​ </r>
 +(integerp nil) <​r>//​[[CL:​Glossary:​false]]//</​r>​
 +</​blockquote>​
 +
 +====Side Effects====
 +None.
 +
 +====Affected By====
 +None.
 +
 +====Exceptional Situations====
 +None.
 +
 +====See Also====
 +None.
 +
 +====Notes====
 +<​blockquote> ​
 +(integerp //object//) ≡ ([[CL:​Functions:​typep]] //object// '​[[CL:​Types:​integer]]) ​
 +</​blockquote>​
 +