Swift Hashable
up:: Swift ⚐
Iteration
Iterables needs to conform to Hashable
.
The Foundation types like string, int etc are all hashable. So if your struct only has foundation types, it automatically conforms to Hashable.
Search
Aug 15, 2024
up:: Swift ⚐
Iterables needs to conform to Hashable
.
The Foundation types like string, int etc are all hashable. So if your struct only has foundation types, it automatically conforms to Hashable.