Documentation
¶
Index ¶
- func DifferenceSet[T cmp.Ordered](a, b []T) []T
- func DifferenceSetAll[T cmp.Ordered](a, b []T) []T
- func DifferenceSetAllFunc[T any](a, b []T, f func(a T) any) []T
- func DifferenceSetRight[T cmp.Ordered](a, b []T) []T
- func Distinct[T cmp.Ordered](a []T) []T
- func DistinctFunc[T any](a []T, f func(a T) any) []T
- func Intersection[T cmp.Ordered](a, b []T) []T
- func IntersectionFunc[T any](a, b []T, f func(a T) any) []T
- func IntersectionRepeat[T cmp.Ordered](a, b []T) []T
- func UnionSetRepeat[T cmp.Ordered](a, b []T) []T
- func UnionSetUnique[T cmp.Ordered](a, b []T) []T
- func UnionSetUniqueFunc[T any](a, b []T, f func(a T) any) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DifferenceSetAllFunc ¶
DifferenceSetAllFunc 任意类型差集全量
func DifferenceSetRight ¶
DifferenceSetRight 差集--以右边为主
func DistinctFunc ¶ added in v0.0.2
func IntersectionFunc ¶
IntersectionFunc 任意类型交集 --无重复
func IntersectionRepeat ¶
IntersectionRepeat 有重复交集--其返回结果有重复元素
func UnionSetUniqueFunc ¶
UnionSetUniqueFunc 任意类型并集 --无重复
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.