Photo by Piret Ilver on Unsplash
You can read a few lengthy explanations on Stack Overflow, but in a nutshell:
-
equal?
returns true if its arguments have the same structure. This is comparable to==
in most languages. -
eqv?
is a pointer comparison. It looks at memory addresses.- The exception is numbers.
- Unlike
eq?
, it will compare numeric data instead of addresses. - However, it won't convert between
int
andfloat
data.
Top comments (0)