eq?

(eq? obj1 obj2)


Description:

Check to see if two objects are the same (i.e. share the same reference).  eq? is the most strigent of the equality checks


Arguments:

           obj1 -- any valid scheme object

           obj2 -- any valid scheme object


Returns: boolean


Related: equal? eqv? 


Examples:

(eq? 'a 'a)               => #t

(eq? (list 'a) (list 'a)) => #f



Back to index