Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
Filter returns a new slice containing only the elements of the slice that satisfy the predicate.
func FindFunc ¶ added in v0.9.3
FindFunc returns the first element in the slice that satisfies the predicate.
It returns the default value for the type and false if no element satisfies the predicate.
func FindIFunc ¶ added in v0.9.3
FindIFunc returns the index of the first element in the slice that satisfies the predicate.
It returns -1 and false if no element satisfies the predicate
func Intersect ¶
func Intersect[T comparable](a, b []T) []T
Intersect returns the intersection of two comparable slices.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.