Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

// Set is a collection of unique values. | |
type Set[T comparable] struct { | |
elements map[T]bool | |
} | |
// NewSet creates a new empty set. | |
func NewSet[T comparable]() *Set[T] { | |
return &Set[T]{elements: map[T]bool{}} | |
} |