Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDifference ¶
func SetDifference[T comparable](a, b []T, unique bool) []T
SetDifference returns a slice containing the elements in slice a that are not in slice b.
func Unique ¶
func Unique[T comparable](s []T) []T
Unique returns a slice containing only the unique elements of the given slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.