Is there any good reason. The default Swift type does not conform to the Hashable protocol. I find many cases where I would like to use it as a dictionary key, and then I always need to add this seemingly silly extension:
extension Character: Hashable { var hashValue: Int { return String(self).hashValue } }
source share