Versions in this module Expand all Collapse all v1 v1.0.2 Jun 13, 2025 v1.0.1 Jun 13, 2025 Changes in this version + func CountBy[T any, K comparable](collection []T, iteratee func(T) K) map[K]int + func Every[T any](collection []T, predicate func(T) bool) bool + func FilterMap[K comparable, V any](collection map[K]V, predicate func(V, K) bool) map[K]V + func Filter[T any](collection []T, predicate func(T) bool) []T + func FindLast[T any](collection []T, predicate func(T) bool) (T, bool) + func Find[T any](collection []T, predicate func(T) bool) (T, bool) + func ForEachMap[K comparable, V any](collection map[K]V, iteratee func(V, K)) + func ForEachWithIndex[T any](collection []T, iteratee func(T, int)) + func ForEach[T any](collection []T, iteratee func(T)) + func GroupBy[T any, K comparable](collection []T, iteratee func(T) K) map[K][]T + func Includes[T comparable](collection []T, value T) bool + func KeyBy[T any, K comparable](collection []T, iteratee func(T) K) map[K]T + func MapMap[K comparable, V any, R any](collection map[K]V, iteratee func(V, K) R) []R + func MapWithIndex[T any, R any](collection []T, iteratee func(T, int) R) []R + func Map[T any, R any](collection []T, iteratee func(T) R) []R + func OrderBy[T any, U int | int8 | int16 | int32 | int64 | float32 | float64 | string](collection []T, iteratee func(T) U, ascending bool) []T + func Partition[T any](collection []T, predicate func(T) bool) [][]T + func ReduceMap[K comparable, V any, R any](collection map[K]V, iteratee func(R, V, K) R, accumulator R) R + func ReduceRight[T any, R any](collection []T, iteratee func(R, T) R, accumulator R) R + func Reduce[T any, R any](collection []T, iteratee func(R, T) R, accumulator R) R + func Reject[T any](collection []T, predicate func(T) bool) []T + func SampleSize[T any](collection []T, n int) []T + func Sample[T any](collection []T) (T, bool) + func Size[T any](collection []T) int + func Some[T any](collection []T, predicate func(T) bool) bool + func SortBy[T any, U int | int8 | int16 | int32 | int64 | float32 | float64 | string](collection []T, iteratee func(T) U) []T