Skip to content

Glossary: Go Beyond the Basics

comparable

A constraint for types that work with `==`. Map keys must be comparable, so `Set[T comparable]` can use `T` as a map key.

Where the book teaches it

Related terms

constraintanycmp.Ordered