Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyMatches ¶
func AnyMatches[T comparable, S ~[]T](s S, filter func(v T) bool) bool
AnyMatches checks if any value in the slice matches the filter. If so, true is returned, otherwise false.
func Contains ¶
func Contains[T comparable, S ~[]T](slice S, value T) bool
Contains checks if a value is present in
func Difference ¶
func Difference[T comparable, S ~[]T](a S, b S) S
Difference is removing all elements from a which are present in b. It is the mathematical set-operation equivalent as (A - B)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.