Documentation ¶ Index ¶ func Some[T interface{}](collection []T, predicate func(e T, index int, collection []T) bool) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Some ¶ func Some[T interface{}](collection []T, predicate func(e T, index int, collection []T) bool) bool Checks if predicate returns truthy for any element of collection. Iteration is stopped once predicate returns truthy. The predicate is invoked with three arguments: (value, index|key, collection). Types ¶ This section is empty. Source Files ¶ View all Source files some.go Click to show internal directories. Click to hide internal directories.