Documentation
¶
Index ¶
- Variables
- func Equal[T comparable](a, b []T) bool
- func Filter[T any](array []T, callback func(item T) bool) []T
- func Find[T any](array []T, callback func(item T) bool) (*T, error)
- func ForEach[T any](array []T, callback func(item T))
- func Map[T any, U any](array []T, callback func(item T) U) []U
- func Reduce[T any, U any](array []T, callback func(target U, item T) U, target U) U
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func Equal ¶
func Equal[T comparable](a, b []T) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.