Common Lisp the Language 2nd Edition


next up previous contents index
Next: Logical Operators Up: Predicates Previous: Specific Data Type

6.3. Equality Predicates

Common Lisp provides a spectrum of predicates for testing for equality of two objects: eq (the most specific) eql equal and equalp (the most general). eq and equal have the meanings traditional in Lisp. eql was added because it is frequently needed and equalp was added primarily in order to have a version of equal that would ignore type differences when comparing numbers and case differences when comparing characters. If two objects satisfy any one of these equality predicates If two objects satisfy any one of these equality predicatesion of equall>"icons/next_motif.gif">