Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Difference ¶
Types ¶
type Set ¶
type Set[K ordered, V any] struct { // contains filtered or unexported fields }
Set is a set of values of type V, indexed by keys of type K. We require an orderable type, so that we can provide a deterministic output. There are other ways to return a deterministic output (i.e., maintain the insert order), but this is the simplest.
func NewSetWithCustomKey ¶
Click to show internal directories.
Click to hide internal directories.