Constant [Concept]


Purpose

The Constant predicate tests whether a given object is a Loom constant.

Syntax

Constant object

Argument

The object argument is any object.

Value

The Constant predicate returns t if object is a number, character, string, symbol, or list.

Examples

(ask (Constant 98.6)) ==> T 
(ask (Constant \#\a)) ==> T 
(ask (Constant "abc")) ==> T 
(ask (Constant 'foo)) ==> T 
(ask (Constant '(a b c))) ==> T 
(ask (Constant ())) ==> T 
(ask (Constant Thing)) ==> NIL

See Also

Last modified: Jun 1 1995