Cons-Or-Null [Concept]


Purpose

The Cons-or-Null predicate tests whether a given object is a Lisp cons or nil.

Syntax

Cons-Or-Null object

Argument

The object argument is any object.

Value

The Cons-Or-Null predicate returns t if object is a cons or nil.

Examples

(ask (Cons-Or-Null '(1 2 3))) ==> T 
(ask (Cons-Or-Null nil)) ==> T

See Also

Last modified: Jun 1 1995