Versions in this module Expand all Collapse all v1 v1.15.0 Sep 9, 2024 Changes in this version + func CountBy[T any](collection []T, predicate func(item T) bool) (count int) + func Count[T comparable](collection []T) (count int) + func Each[T any](collection []T, iteratee func(item T, index int)) + func Filter[V any](collection []V, predicate func(item V, index int) bool) []V + func GroupBy[T any, U comparable](collection []T, iteratee func(item T) U) map[U][]T + func Keys[K comparable, V any](in map[K]V) []K + func Map[T any, R any](collection []T, iteratee func(item T, index int) R) []R + func Max[T constraints.Ordered](collection []T) T + func Merge[K comparable, V any](maps ...map[K]V) map[K]V + func Min[T constraints.Ordered](collection []T) T + func Reverse[T any](collection []T) []T + func Shuffle[T any](collection []T) []T + func Split[T any](collection []T, size int) [][]T + func Sum[T constraints.Float | constraints.Integer | constraints.Complex](collection []T) T + func Unique[T comparable](collection []T) []T + func Values[K comparable, V any](in map[K]V) []V