eq


(eq  exprA  exprB)

This function verifies whether 2 expressions or values are identical, referring to the same object.

Arguments

exprA  any Lisp expression or value to be compared against exprB

exprB  any Lisp expression or value to be compared against exprA

Return

T if both expressions/values are bound to the same object, NIL otherwise

Example

(eq (entlast) (entlast))  T

(setq l1 '(1 2 3)) 

(setq l2 '(1 2 3)) 

(setq l3 l2)
(eq l1 l3)  NIL
(eq l2 l3)  T

Remarks

see (equal) function



©  Bricsys NV. All rights reserved.