eq

(eq term1 term2)

The eq function evaluates whether two terms are identical.

The function returns T if the first expression and the second expression are bound to the same object; otherwise, the function returns nil.

Examples

: (setq a '(1 2 3))

: (setq b '(1 2 3))

: (setq c b)

: (eq a b)

nil

: (eq b c)

T

Related Functions

equal, =