See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
// 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{}} | |
} |