(eq expr1 expr2)
eq gives true when both expr are connected to the same object.
Code: Select all
(setq f1 '(a b c))
(setq f2 '(a b c))
(setq f3 f2)
(eq f1 f3) => nil {not the sane lists}
(eq f3 f2) => true {the same lists}
Code: Select all
(setq f1 '(a b c))
(setq f2 '(a b c))
(setq f3 f2)
(eq f1 f3) => nil {not the sane lists}
(eq f3 f2) => true {the same lists}