Versions in this module Expand all Collapse all v0 v0.0.45 Jul 22, 2023 Changes in this version + func Clone(t []T) []T + func Contains(inputSlice []T, element T) bool + func ContainsItems(s1 []T, s2 []T) bool + func Dedupe(inputSlice []T) (result []T) + func Diff(s1, s2 []V) (extraS1, extraS2 []V) + func ElementsMatch(s1, s2 []V) bool + func Equal(s1, s2 []T) bool + func FirstNonZero(inputs []T) (T, bool) + func IsEmpty(s []V) bool + func Merge(ss ...[]V) []V + func MergeItems(items ...V) []V + func PickRandom(v []T) T + func PruneEmptyStrings(v []string) []string + func PruneEqual(inputSlice []T, equalTo T) (r []T) + func ToInt(s []string) ([]int, error) + func VisitRandom(t []T, visit VisitFunc[T]) + func VisitRandomZero(t []T, visit VisitFunc[T]) + func VisitSequential(t []T, visit VisitFunc[T]) + type VisitFunc func(index int, item T) error