Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Disjoint ¶
func Disjoint[T comparable](a, b []T) bool
Disjoint returns true if the two slices have no elements in common.
func DisjointTransform ¶
func DisjointTransform[T comparable](a, b []T, transformA, transformB TransformFunc[T]) bool
DisjointTransform returns true if the two slices have no elements in common, it takes two transform functions that are applied to the elements of each slice before comparing them.
func Intersection ¶
func Intersection[T comparable](a, b []T) []T
func Uniq ¶
func Uniq[T comparable](s []T) []T
Types ¶
type TransformFunc ¶
type TransformFunc[T comparable] func(T) T
Click to show internal directories.
Click to hide internal directories.