How do you implement a function that determines whether two values are equal?

Technical