Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶ added in v1.14.2
func Apply[K comparable](in []K, f func(K) K) []K
Apply applies the given function to every element of the slice.
func Filter ¶
func Filter[K comparable](in []K, r ...K) []K
Filter filters all r's from the input list.
func Map ¶
func Map[K comparable](in []K) map[K]bool
Map takes a slice of a given type and create a boolean map with keys of that type.
func Sorted ¶
func Sorted[K constraints.Ordered](l []K) []K
Sorted returns a sorted set of the input.
func SortedFiltered ¶
func SortedFiltered[K constraints.Ordered](l []K, want func(K) bool) []K
SortedFiltered returns a sorted set of the input, filtered by the predicate.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.