Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set[A any] struct { // contains filtered or unexported fields }
func NewSet ¶
func NewSet[A comparable](elems []A) *Set[A]
func NewSetBy ¶
func NewSetBy[A any, K comparable](projection func(A) K, elems []A) *Set[A]
func (*Set[A]) Difference ¶
Difference removes any items from `s` which are in `other`
type Wrapper ¶
type Wrapper[A any, K comparable] struct { Elems map[K]A Projection func(A) K }
func NewWrapper ¶
func NewWrapper[A comparable](elems []A) *Wrapper[A, A]
func NewWrapperBy ¶
func NewWrapperBy[A any, K comparable](projection func(A) K, elems []A) *Wrapper[A, K]
Click to show internal directories.
Click to hide internal directories.