Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](haystack []T, needle T) bool
func ContainsCompare ¶ added in v0.7.5
func Overlap ¶ added in v0.7.5
func Overlap[T comparable](a []T, b []T) bool
Overlap returns if the 2 sets have any overlap (element(s) in common)
func OverlapCompare ¶ added in v0.7.5
func Unique ¶ added in v0.11.0
func Unique[T comparable](a []T) []T
Unique returns a new slice with all duplicate elements removed. This is a slow function on large lists. TODO: Sort elements and implement a faster search algorithm if we really start to use this.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.