Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyToAll ¶
func ApplyToAll[T, U any](s []T, f func(T) U) []U
ApplyToAll returns a new slice containing the results of applying the function `f` to each element of the original slice `s`.
func Filter ¶
func Filter[T any](s []T, f FilterFunc[T]) []T
Filter returns a new slice containing all values that return `true` for the filter function `f`
Types ¶
type FilterFunc ¶
Click to show internal directories.
Click to hide internal directories.