Documentation ¶
Index ¶
- func Contains[T ~[]E, E comparable](a T, t E) bool
- func Filter[T any](a []T, f func(T) bool) []T
- func FlatMap[T, R any](a []T, f func(T) []R) []R
- func ForEach[T any](a []T, f func(T))
- func Map[T, R any](a []T, f func(T) R) []R
- func MapI[T, R any](a []T, f func(T, int) R) []R
- func Reduce[T, R any](a []T, f func(r R, t T) R, defaultVal ...R) R
- func ReduceErr[T any](a []T, f func(t T) error) error
- func RemoveDuplicates[T comparable](a []T) []T
- func Reverse[T ~[]E, E any](a T) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T ~[]E, E comparable](a T, t E) bool
func RemoveDuplicates ¶
func RemoveDuplicates[T comparable](a []T) []T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.