Documentation
¶
Index ¶
- func BatchGet[T any](ids []string, reqMaker func(string) (T, error)) (out map[string]T)
- func Filter[T any](items []T, filtfunc func(T) bool) (out []T)
- func IndexOf[T any](items []T, matchfunc func(T) bool) int
- func Map[T any, U any](items []T, mapfunc func(T) U) (out []U)
- func MapKeys[K comparable, V any](input map[K]V) []K
- func MapValues[V any, K comparable](input map[K]V) []V
- func Reduce[T any, V any](input []T, reducer func(index int, item T, output V) V, out V) V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapKeys ¶
func MapKeys[K comparable, V any](input map[K]V) []K
func MapValues ¶
func MapValues[V any, K comparable](input map[K]V) []V
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.