Daniel Lyons' Notes

Equatable protocol in Swift

An Equatable conformance should fulfill the Reflexive relation property meaning:

  1. a == a is always true (Reflexivity)
  2. a == b implies b == a (Symmetry)
  3. a == b and b == c implies a == c (Transitivity)

Deep Dives

Equatable protocol in Swift
Interactive graph
On this page
Deep Dives