DEV Community

Discussion on: Daily Challenge #213 - Are they the "same"?

 
craigmc08 profile image
Craig McIlwrath

It's not really deep comparison, it uses the Eq class (==) function. For the primitives, it's by value. For ADTs that derive Eq, it checks equality for all of the values in the ADT, which functions that same as deep comparison.