Returns true if object is of type cons; otherwise, returns false.
(consp nil) → false (consp (cons 1 2)) → true (consp '()) → false ; ≡ (consp 'nil) ≡ (consp nil)
(consp nil)
false
(consp (cons 1 2))
true
(consp '())
; ≡ (consp 'nil) ≡ (consp nil)
None.
These are all equivalent:
(consp object) (typep object 'cons) (not (atom object)) (not (typep object 'atom)) (typep object '(not atom))
Do not use this sidebar - nothing is linked here yet.
Click here instead.