concept Pair type in category swift
appears as: Pair type, The Pair type

This is an excerpt from Manning's book Swift in Depth.
As soon as you put two Hashable types inside a tuple, that tuple isn’t Hashable anymore. Swift doesn’t offer a way to combine the two hash values from a tuple. You’ll solve this problem by creating a Pair type that contains two Hashable properties.
You can combine two Hashable types by introducing a new generic struct that you’ll call Pair. The Pair type accepts two Hashable types and will be made Hashable itself, too, as shown in this listing.