Versions in this module Expand all Collapse all v0 v0.3.0 Feb 2, 2023 Changes in this version + func Fold(slice []T, empty T, fn func(a T, b T) T) T + func Join(slice []T, delimiter string) string v0.2.0 Aug 18, 2022 Changes in this version + func All(slice []T) bool + func Any(slice []T) bool + func Contains(object T, element M) bool + func Keys(m map[K]V) []K + func Ternary(condition bool, exprIfTrue T, exprIfFalse T) T + func Values(m map[K]V) []V v0.1.0 Aug 17, 2022 Changes in this version + func Chunk(slice []T, size int) [][]T + func Compact(slice []T) []T + func Concat(slices ...[]T) []T + func Difference(slice1 []T, slice2 []T) []T + func Filter(slice []T, fn func(T) bool) []T + func ForEach(slice []T, fn func(currentValue T, args ...any)) + func GroupBy(slice []T, fn func(currentValue T) M) map[M][]T + func Intersection(slice1 []T, slice2 []T) []T + func Map(slice []T, fn func(currentValue T) M) []M + func Max(numbers ...T) T + func Min(numbers ...T) T + func MinMax(numbers ...T) (min T, max T) + func Reduce(slice []T, fn func(M, T) M, initValue M) M + func Sort(slice []T) []T + func Union(slices ...[]T) []T + func Unique(slice []T) []T