Versions in this module Expand all Collapse all v1 v1.0.1 Dec 4, 2023 Changes in this version + 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