![[HARLEQUIN]](../Graphics/Harlequin-Small.gif)
![[Previous]](../Graphics/Prev.gif)
![[Up]](../Graphics/Up.gif)
![[Next]](../Graphics/Next.gif)
Syntax:
consp object => generalized-boolean
Arguments and Values:
object---an object.
generalized-boolean---a generalized boolean.
Description:
Returns true if object is of type cons; otherwise, returns false.
Examples:
(consp nil) => false (consp (cons 1 2)) => true
The empty list is not a cons, so
(consp '()) == (consp 'nil) => false
Side Effects: None.
Affected By: None.
Exceptional Situations: None.
See Also:
Notes:
(consp object) == (typep object 'cons) == (not (typep object 'atom)) == (typep object '(not atom))
![[Starting Points]](../Graphics/Starting-Points.gif)
![[Contents]](../Graphics/Contents.gif)
![[Index]](../Graphics/Index.gif)
![[Symbols]](../Graphics/Symbols.gif)
![[Glossary]](../Graphics/Glossary.gif)
![[Issues]](../Graphics/Issues.gif)