ch2_3_predic
This is an old revision of the document!
Predicates
Simple function that return T
or NIL
.
EQ
Tests if to arguments are the same symbol, accepts only symbols or NIL
.
>(eq 'pi 'user::pi) T >(eq 'nil ()) ; NIL, 'NIL, () and '() are all EQ T
EQUAL
Tests if two things are the same, is case and type senstive.
NOT
Logical not. Accepts single argument.
>(not 13) NIL >(not '()) T
ATOM
Tests if the argument is atom.
>(atom 13) T >(atom nil) ; NIL is an atom T >(atom '()) ; this is still NIL T >(atom '(a b)) ; this is list NIL
consp
listp
Symbolp
stringp
numberp
integerp
zerop
Oddp
Evenp
functionp
packagep
Boundp
fboundp
SPECIAL-OPERATOR-P
ch2_3_predic.1619166450.txt.gz · Last modified: 2021/04/23 02:27 by admin