User Tools


Differences

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

Link to this comparison view

cl:functions:random-state-p [2019/07/14 17:00]
cl:functions:random-state-p [2019/07/18 14:00] (current)
Line 1: Line 1:
 +====== Function RANDOM-STATE-P ======
 +
 +====Syntax====
 +  * **random-state-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:​random-state]]**;​ otherwise, returns //​[[CL:​Glossary:​false]]//​.
 +
 +====Examples====
 +<​blockquote>​
 +(random-state-p [[CL:​Variables:​*random-state*]]) <​r>//​[[CL:​Glossary:​true]]//</​r>​
 +(random-state-p ([[CL:​Functions:​make-random-state]])) <​r>//​[[CL:​Glossary:​true]]//</​r>​
 +(random-state-p '​test-function) <​r>//​[[CL:​Glossary:​false]]//</​r>​
 + </​blockquote>​
 +
 +====Side Effects====
 +None.
 +
 +====Affected By====
 +None.
 +
 +====Exceptional Situations====
 +None.
 +
 +====See Also====
 +  * **[[CL:​Functions:​make-random-state|Function MAKE-RANDOM-STATE]]**
 +  * **[[CL:​Variables:​star-random-state-star|Variable *RANDOM-STATE*]]**
 +
 +====Notes====
 +<​blockquote>​
 +(random-state-p //object//) ≡ ([[CL:​Functions:​typep]] //object// '​[[CL:​Types:​random-state]])
 +</​blockquote>​
 +