Versions in this module Expand all Collapse all v1 v1.2.0 Mar 14, 2024 Changes in this version + func ContainsWith[S ~[]E, E any](whole, part S, compare func(E, E) int) bool + func Contains[S ~[]E, E cmp.Ordered](whole, part S) bool + func DuplicateIndexWith[S ~[]E, E any](slice S, compare func(E, E) int) int + func DuplicateIndex[S ~[]E, E cmp.Ordered](slice S) int + func DuplicateIndexesWith[S ~[]E, E any](slice S, compare func(E, E) int) []int + func DuplicateIndexes[S ~[]E, E cmp.Ordered](slice S) []int + func IntersectionWith[TS ~[]T, T any, US ~[]U, U any](self TS, other US, compare func(T, U) int) (TS, US) + func IntersectionXorWith[TS ~[]T, T any, US ~[]U, U any](self TS, other US, compare func(T, U) int) (TS, TS, US, US) + func IntersectionXor[S ~[]E, E cmp.Ordered](self, other S) (S, S, S, S) + func Intersection[S ~[]E, E cmp.Ordered](self, other S) (S, S) + func UnionWith[S ~[]E, E any](self, other S, compare func(E, E) int) S + func Union[S ~[]E, E cmp.Ordered](self, other S) S + func XorWith[TS ~[]T, T any, US ~[]U, U any](self TS, other US, compare func(T, U) int) (TS, US) + func Xor[S ~[]E, E cmp.Ordered](self S, other S) (S, S) v1.1.0 Mar 11, 2023 Changes in this version + func Compare(self T, other T) int + func Difference(self []T, other []U, compare func(T, U) int) []T + func Equal(self, other T) bool + func Intersect(self []T, other []U, compare func(T, U) int) []T + func Unique(self []T, equal func(T, T) bool) []T v1.0.0 Mar 11, 2023