Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
func Filter(arr interface{}, predicate interface{}) interface{}
*
Example: ForEach([]int{1, 2, 3, 4}, func(x int) { fmt.Println(x) })
func Find ¶
func Find(arr interface{}, predicate interface{}) interface{}
*
Example: Find([]int{1, 2, 3, 4}, func(x int) bool { return x%2 == 0 })
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.