CS 3304: Comparative Languages
FP Foundations, Scheme
[
Course Documents
] : [
FP Foundations, Scheme
]
Previous
Contents
Next
Keyword Index
Predicate Functions (cont.)
2.
EQV?
(atom equality) takes two symbolic parameters; it returns #T if both parameters are atoms and the two are the same
(eqv? 'a 'a) yields #t (eqv? 'a '(a b)) yields ()
EQV? is
unreliable
if used on lists
3.
EQ?
(pointer equality) is like EQV?, but is also
unreliable
on numbers, characters, and a few other special cases