PREDICATE FUNCTIONS



IS THIS AN ATOM?

(atom <expr>)


IS THIS A SYMBOL?

(symbolp <expr>)


IS THIS A NUMBER?

(numberp <expr>)


IS THIS AN EMPTY LIST?

(null <expr>)


IS THIS FALSE?

(not <expr>)


IS THIS A LIST?

(listp <expr>)


IS THIS THE END OF A LIST?

(endp <list>)


IS THIS A NON-EMPTY LIST?

(consp <expr>)


IS THIS A CONSTANT?

(
constantp <expr>)


IS THIS A SPECIAL SYMBOL?

(
specialp <expr>)


IS THIS AN INTEGER?

(
integerp <expr>)


IS THIS A FLOAT?

(
floatp <expr>)


IS THIS A RATIONAL NUMBER?

(
rationalp <expr>)

Part of math extension.


IS THIS A COMPLEX NUMBER?

(
complexp <expr>)

Part of math extension.


IS THIS A STRING?

(
stringp <expr>)


IS THIS A CHARACTER?

(
characterp <expr>)


IS THIS AN ARRAY?

(
arrayp <expr>)


IS THIS A STREAM?

(
streamp <expr>)


IS STREAM OPEN?

(
open-stream-p <stream>)


IS STREAM READABLE?

(
input-stream-p <stream>)


IS STREAM WRITABLE?

(
output-stream-p <stream>)


IS THIS AN OBJECT?

(
objectp <expr>)


IS THIS A CLASS OBJECT?

(
classp <expr>)


IS A VALUE BOUND TO THIS SYMBOL?

(boundp <sym>)


IS A FUNCTIONAL VALUE BOUND TO THIS SYMBOL?

(
fboundp <sym>)


IS THIS A FUNCTION?

(
functionp <sym>)

Defined in common.lsp


IS THIS NUMBER NEGATIVE?

(minusp <expr>)


IS THIS NUMBER ZERO?

(
zerop <expr>)


IS THIS NUMBER POSITIVE?

(plusp <expr>)


IS THIS INTEGER EVEN?

(evenp <expr>)


IS THIS INTEGER ODD?

(oddp <expr>)


IS SET A SUBSET?

(
subsetp <list1> <list2> &key :test :test-not :key)


ARE THE EXPRESSIONS EQUAL?

(
eq <expr1> <expr2>)

(eql <expr1> <expr2>)

(equal <expr1> <expr2>)

(equalp <expr1> <expr2>)

equalp defined in common.lsp


IS THIS A SPECIFIED TYPE?

(typep <expr> <type>)

The specifer can also be a form (which can be nested). All form elements are quoted. Valid form cars:

Note that everything is of type T, and nothing is of type NIL.


XLISP-PLUS - Version 2.1g - Tom Almy tom.almy@tek.com - 18 JUL 94
Generated with
WebMaker