This package defines the Common Lisp predicate
This function is a more flexible version of
equal. In particular, it compares strings case-insensitively, and it compares numbers without regard to type (so that
(cl-equalp 3 3.0)is true). Vectors and conses are compared recursively. All other objects are compared as if by
This function differs from Common Lisp
equalpin several respects. First, Common Lisp's
equalpalso compares characters case-insensitively, which would be impractical in this package since Emacs does not distinguish between integers and characters. In keeping with the idea that strings are less vector-like in Emacs Lisp, this package's
cl-equalpalso will not compare strings against vectors of integers.
Also note that the Common Lisp functions
eql to compare elements, whereas Emacs Lisp follows the
MacLisp tradition and uses
equal for these two functions.
as in Common Lisp. The standard Emacs Lisp functions
eq, and the standard