Recently I discovered that tuples can be used to easily and simply compare and equate multiple variables.
Take for example the implementation of Date and Comparable taken from the Swift documentation:
Date
Comparable