Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
func Filter[T interface{}](list []T, test func(T) bool) []T
Filter an slice given a filter function
func FilterAndMap ¶
func FilterAndMap[S, D interface{}](list []S, test func(S) bool, mapTo func(S) D) []D
FilterAndMap filter a list and converts to other list given a filter and a map functions
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.