Glossary: Swift Beyond the Basics
Comparable
A standard protocol for types that can be ordered. You write the `<` operator and Swift builds `>`, `<=`, `sorted()`, `min()` and `max()` from it.
Glossary: Swift Beyond the Basics
A standard protocol for types that can be ordered. You write the `<` operator and Swift builds `>`, `<=`, `sorted()`, `min()` and `max()` from it.