PPT Slide
COMMON LISP EQUALITY
EQ
EQ is for symbol equality.
( EQ X Y ) returns
T if X and Y are identical symbols (are represented by the same chunk of computer memory ).
NIL otherwise
( eq ’a ’a ) T
( eq ’b ’a) NIL
( eq ’( a b ) ’( a b ) ) NIL
( setf x ’a )
( eq x ’a ) T
( eq ( float 2 ) ( sqrt 4 ) ) NIL
1.24
Previous slide
Next slide
Back to first slide
View graphic version