Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Any ¶
func Any(enumerable, fun interface{}) bool
Any returns whether any elements of a slice/map return true when invoke fun
func Count ¶
func Count(enumerable, fun interface{}) int
Count returns the number of elements of a slice/map that return true when invoke fun
func Every ¶
func Every(enumerable, fun interface{}) bool
Every returns whether all the elements of a slice/map return true when invoke fun How the code works is kind like the Any func, but IMO is a good duplication
func Filter ¶
func Filter(enumerable, fun interface{}) interface{}
Filter the enumerable - returns the elements for which fun returns true
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.