Documentation
¶
Overview ¶
Package sliceutils provides utility functions for slices.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Difference ¶
func Difference[T comparable](a, b []T) []T
Difference returns a slice with the elements that are in a but not in b.
func Intersection ¶
func Intersection[T comparable](a, b []T) []T
Intersection returns a slice with the elements that are in both a and b.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.