Documentation ¶
Index ¶
- func Chunk[V any](list []V, size int) [][]V
- func Contains[V comparable](list []V, target V) bool
- func Diff[V comparable](list []V, target []V) []V
- func Filter[V any](list []V, f func(int, V) bool) []V
- func First[V any](list []V, defaults ...V) V
- func GroupBy[K comparable, V any](list []V, f func(V) K) map[K][]V
- func IndexOf[V comparable](list []V, element V) int
- func Intersect[V comparable](list []V, target []V) []V
- func Keys[K comparable, V any](m map[K]V) []K
- func LastIndexOf[V comparable](list []V, element V) int
- func Map[V any, R any](list []V, f func(int, V) R) []R
- func Max[V constraints.Ordered](nums ...V) V
- func Min[V constraints.Ordered](nums ...V) V
- func Union[V comparable](list []V, target []V) []V
- func Unique[V comparable](list []V) []V
- func Values[K comparable, V any](m map[K]V) []V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.