What is the difference between eq?, eqv?, equal?, and = in Scheme?
I’ll answer this question incrementally. Let’s start with the = equivalence predicate. The = predicate is used to check whether two numbers are equal. If you supply it anything else but a number then it will raise an error: (= 2 3) => #f (= 2.5 2.5) => #t (= ‘() ‘()) => error The … Read more